jens@16: // jens@16: // MYOID.h jens@16: // MYCrypto jens@16: // jens@16: // Created by Jens Alfke on 5/28/09. jens@16: // Copyright 2009 Jens Alfke. All rights reserved. jens@16: // jens@16: jens@16: #import jens@16: jens@16: jens@16: /** An ASN.1 Object-ID, which is a sequence of integer components that define namespaces. */ jens@16: @interface MYOID : NSObject jens@16: { jens@16: NSData *_data; jens@16: } jens@16: jens@16: - (id) initWithComponents: (const UInt32*)components count: (unsigned)componentCount; jens@16: - (id) initWithBEREncoding: (NSData*)encoding; jens@16: - (NSData*) DEREncoding; jens@16: jens@16: - (const UInt32*) components; jens@16: - (unsigned) componentCount; jens@16: jens@16: @end