author | Jens Alfke <jens@mooseyard.com> |
Tue Jun 09 23:58:03 2009 -0700 (2009-06-09) | |
changeset 24 | 6856e071d25a |
parent 16 | c409dbc4f068 |
child 26 | d9c2a06d4e4e |
permissions | -rw-r--r-- |
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@19 | 9 |
#import <Foundation/Foundation.h> |
jens@16 | 10 |
|
jens@16 | 11 |
|
jens@19 | 12 |
/* An ASN.1 Object-ID, which is a sequence of integer components that define namespaces. |
jens@19 | 13 |
This is mostly used internally by MYParsedCertificate. */ |
jens@16 | 14 |
@interface MYOID : NSObject <NSCopying> |
jens@16 | 15 |
{ |
jens@16 | 16 |
NSData *_data; |
jens@16 | 17 |
} |
jens@16 | 18 |
|
jens@16 | 19 |
- (id) initWithComponents: (const UInt32*)components count: (unsigned)componentCount; |
jens@16 | 20 |
- (id) initWithBEREncoding: (NSData*)encoding; |
jens@16 | 21 |
- (NSData*) DEREncoding; |
jens@16 | 22 |
|
jens@16 | 23 |
- (const UInt32*) components; |
jens@16 | 24 |
- (unsigned) componentCount; |
jens@16 | 25 |
|
jens@16 | 26 |
@end |