SOSRecoveryKeyBag.h [plain text]
#ifndef SOSRecoveryKeyBag_h
#define SOSRecoveryKeyBag_h
#include <stdio.h>
#include <CoreFoundation/CoreFoundation.h>
typedef struct __OpaqueSOSRecoveryKeyBag *SOSRecoveryKeyBagRef;
CFTypeRef SOSRecoveryKeyBageGetTypeID(void);
SOSRecoveryKeyBagRef SOSRecoveryKeyBagCreateForAccount(CFAllocatorRef allocator, CFTypeRef account, CFDataRef pubData, CFErrorRef *error);
CFDataRef SOSRecoveryKeyCopyKeyForAccount(CFAllocatorRef allocator, CFTypeRef account, SOSRecoveryKeyBagRef recoveryKeyBag, CFErrorRef *error);
CFDataRef SOSRecoveryKeyBagCopyEncoded(SOSRecoveryKeyBagRef RecoveryKeyBag, CFErrorRef* error);
SOSRecoveryKeyBagRef SOSRecoveryKeyBagCreateFromData(CFAllocatorRef allocator, CFDataRef data, CFErrorRef *error);
CFDataRef SOSRecoveryKeyBagGetKeyData(SOSRecoveryKeyBagRef rkbg, CFErrorRef *error);
bool SOSRecoveryKeyBagDSIDIs(SOSRecoveryKeyBagRef rkbg, CFStringRef dsid);;
const uint8_t* der_decode_RecoveryKeyBag(CFAllocatorRef allocator,
SOSRecoveryKeyBagRef* RecoveryKeyBag, CFErrorRef *error,
const uint8_t* der, const uint8_t *der_end);
size_t der_sizeof_RecoveryKeyBag(SOSRecoveryKeyBagRef RecoveryKeyBag, CFErrorRef *error);
uint8_t* der_encode_RecoveryKeyBag(SOSRecoveryKeyBagRef RecoveryKeyBag, CFErrorRef *error,
const uint8_t *der, uint8_t *der_end);
#endif