MYOID.h
author Jens Alfke <jens@mooseyard.com>
Tue Jun 02 13:16:28 2009 -0700 (2009-06-02)
changeset 16 c409dbc4f068
child 19 f6c91b9da05b
permissions -rw-r--r--
* Added ASN.1 / BER / DER utilities, to be used in generating and parsing X.509 certs.
* Added Keychain user-interaction-allowed setter. Added doc comments to MYSymmetricKey.
jens@16
     1
//
jens@16
     2
//  MYOID.h
jens@16
     3
//  MYCrypto
jens@16
     4
//
jens@16
     5
//  Created by Jens Alfke on 5/28/09.
jens@16
     6
//  Copyright 2009 Jens Alfke. All rights reserved.
jens@16
     7
//
jens@16
     8
jens@16
     9
#import <Cocoa/Cocoa.h>
jens@16
    10
jens@16
    11
jens@16
    12
/** An ASN.1 Object-ID, which is a sequence of integer components that define namespaces. */
jens@16
    13
@interface MYOID : NSObject <NSCopying>
jens@16
    14
{
jens@16
    15
    NSData *_data;
jens@16
    16
}
jens@16
    17
jens@16
    18
- (id) initWithComponents: (const UInt32*)components count: (unsigned)componentCount;
jens@16
    19
- (id) initWithBEREncoding: (NSData*)encoding;
jens@16
    20
- (NSData*) DEREncoding;
jens@16
    21
jens@16
    22
- (const UInt32*) components;
jens@16
    23
- (unsigned) componentCount;
jens@16
    24
jens@16
    25
@end