const SecKeyDescriptor kSecCDSAKeyDescriptor = {
.version = kSecKeyDescriptorVersion,
.name = "CDSAKey",
+ .extraBytes = (sizeof(class CDSASecKey) > sizeof(struct __SecKey) ? (sizeof(class CDSASecKey) - sizeof(struct __SecKey)) : 0),
.init = SecCDSAKeyInit,
.destroy = SecCDSAKeyDestroy,
.blockSize = SecCDSAKeyGetBlockSize,
- .getAlgorithmID = SecCDSAKeyGetAlgorithmId,
.copyDictionary = SecCDSAKeyCopyAttributeDictionary,
+ .getAlgorithmID = SecCDSAKeyGetAlgorithmId,
.copyPublic = SecCDSAKeyCopyPublicBytes,
.copyExternalRepresentation = SecCDSAKeyCopyExternalRepresentation,
.copyPublicKey = SecCDSAKeyCopyPublicKey,
.copyOperationResult = SecCDSAKeyCopyOperationResult,
.isEqual = SecCDSAKeyIsEqual,
.setParameter = SecCDSAKeySetParameter,
-
- .extraBytes = (sizeof(class CDSASecKey) > sizeof(struct __SecKey) ? (sizeof(class CDSASecKey) - sizeof(struct __SecKey)) : 0),
};
namespace Security {
}
}
} else {
- cdsaKey = SecKeyCreateFromData(keyAttributes, keyData, NULL);
+ cdsaKey.take(SecKeyCreateFromData(keyAttributes, keyData, NULL));
if (cdsaKey) {
- SecKeySetAuxilliaryCDSAKeyForKey(key, cdsaKey.retain());
+ SecKeySetAuxilliaryCDSAKeyForKey(key, cdsaKey.get());
}
}
}