#include <CommonCrypto/CommonSymmetricKeywrap.h> also included by <CommonCrypto/CommonCrypto.h>

CommonCrypto/CommonSymmetricKeywrap.h

4 functions · 2 variables · 1 enum · 1 typedef

enum(anonymous)

underlying type unsigned int
kCCWRAPAES1

variableCCrfc3394_iv

extern const uint8_t * const CCrfc3394_iv

variableCCrfc3394_ivLen

extern const size_t CCrfc3394_ivLen

typedefCCWrappingAlgorithm

typedef uint32_t CCWrappingAlgorithm

functionCCSymmetricKeyWrap

API_AVAILABLE(macos(10.7), ios(5.0))
int CCSymmetricKeyWrap(
	CCWrappingAlgorithm algorithm,
	const uint8_t *iv,
	const size_t ivLen,
	const uint8_t *kek,
	size_t kekLen,
	const uint8_t *rawKey,
	size_t rawKeyLen,
	uint8_t *wrappedKey,
	size_t *wrappedKeyLen
)

functionCCSymmetricKeyUnwrap

API_AVAILABLE(macos(10.7), ios(5.0))
int CCSymmetricKeyUnwrap(
	CCWrappingAlgorithm algorithm,
	const uint8_t *iv,
	const size_t ivLen,
	const uint8_t *kek,
	size_t kekLen,
	const uint8_t *wrappedKey,
	size_t wrappedKeyLen,
	uint8_t *rawKey,
	size_t *rawKeyLen
)

functionCCSymmetricWrappedSize

API_AVAILABLE(macos(10.7), ios(5.0))
size_t CCSymmetricWrappedSize(CCWrappingAlgorithm algorithm, size_t rawKeyLen)

functionCCSymmetricUnwrappedSize

API_AVAILABLE(macos(10.7), ios(5.0))
size_t CCSymmetricUnwrappedSize(CCWrappingAlgorithm algorithm, size_t wrappedKeyLen)