MYDEREncoder.h
changeset 18 a06e44b9b898
child 19 f6c91b9da05b
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/MYDEREncoder.h	Wed Jun 03 17:22:42 2009 -0700
     1.3 @@ -0,0 +1,25 @@
     1.4 +//
     1.5 +//  MYDEREncoder.h
     1.6 +//  MYCrypto
     1.7 +//
     1.8 +//  Created by Jens Alfke on 5/29/09.
     1.9 +//  Copyright 2009 Jens Alfke. All rights reserved.
    1.10 +//
    1.11 +
    1.12 +#import <Foundation/Foundation.h>
    1.13 +
    1.14 +
    1.15 +@interface MYDEREncoder : NSObject
    1.16 +{
    1.17 +    id _rootObject;
    1.18 +    NSMutableData *_output;
    1.19 +    NSError *_error;
    1.20 +}
    1.21 +
    1.22 +- (id) initWithRootObject: (id)object;
    1.23 ++ (NSData*) encodeRootObject: (id)rootObject error: (NSError**)outError;
    1.24 +
    1.25 +@property (readonly) NSData* output;
    1.26 +@property (readonly, retain) NSError *error;
    1.27 +
    1.28 +@end