MYOID.h
author Jens Alfke <jens@mooseyard.com>
Wed Jul 01 14:19:13 2009 -0700 (2009-07-01)
changeset 26 d9c2a06d4e4e
parent 19 f6c91b9da05b
child 28 54b373aa65ab
permissions -rw-r--r--
Whew, lots and lots of changes accumulated over the past few weeks. Mostly fixes for bugs I discovered while retrofitting Cloudy to use MYCrypto.
     1 //
     2 //  MYOID.h
     3 //  MYCrypto
     4 //
     5 //  Created by Jens Alfke on 5/28/09.
     6 //  Copyright 2009 Jens Alfke. All rights reserved.
     7 //
     8 
     9 #import <Foundation/Foundation.h>
    10 
    11 
    12 /* An ASN.1 Object-ID, which is a sequence of integer components that define namespaces.
    13     This is mostly used internally by MYParsedCertificate. */
    14 @interface MYOID : NSObject <NSCopying>
    15 {
    16     NSData *_data;
    17 }
    18 
    19 #if TARGET_OS_MAC
    20 + (MYOID*) OIDFromCSSM: (CSSM_OID)cssmOid;
    21 #endif
    22 
    23 - (id) initWithComponents: (const UInt32*)components count: (unsigned)componentCount;
    24 - (id) initWithBEREncoding: (NSData*)encoding;
    25 - (NSData*) DEREncoding;
    26 
    27 - (const UInt32*) components;
    28 - (unsigned) componentCount;
    29 
    30 @end