CertBlobUtility Header

The CertBlob Utility header of the CertBlob class.

#import <Foundation/Foundation.h>
#import <Security/Security.h>

@interface CertBlobUtility : NSObject

// Returns the MD5 sum of the input data
+ (NSString*)md5sum:(NSData*)certData;

// Returns the SHA1 fingerprint of the input data
+ (NSString*)sha1:(NSData*)certData;

// Given a signed certificate and private key, return a certificate blob suitable for use in an SUPLoginCertificate
+ (NSData *)makeCertBlob:(SecCertificateRef)certificate andPrivateKey:(SecKeyRef)privateKey;
@end