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

CommonCrypto/CommonKeyDerivation.h

2 enums · 2 typedefs · 2 functions

enum(anonymous)

underlying type unsigned int
kCCPBKDF22

typedefCCPBKDFAlgorithm

typedef uint32_t CCPBKDFAlgorithm

enum(anonymous)

underlying type unsigned int
kCCPRFHmacAlgSHA11
kCCPRFHmacAlgSHA2242
kCCPRFHmacAlgSHA2563
kCCPRFHmacAlgSHA3844
kCCPRFHmacAlgSHA5125

typedefCCPseudoRandomAlgorithm

typedef uint32_t CCPseudoRandomAlgorithm

functionCCKeyDerivationPBKDF

API_AVAILABLE(macos(10.7), ios(5.0))
int CCKeyDerivationPBKDF(
	CCPBKDFAlgorithm algorithm,
	const char *password,
	size_t passwordLen,
	const uint8_t *salt,
	size_t saltLen,
	CCPseudoRandomAlgorithm prf,
	unsigned rounds,
	uint8_t *derivedKey,
	size_t derivedKeyLen
)

functionCCCalibratePBKDF

API_AVAILABLE(macos(10.7), ios(5.0))
unsigned CCCalibratePBKDF(
	CCPBKDFAlgorithm algorithm,
	size_t passwordLen,
	size_t saltLen,
	CCPseudoRandomAlgorithm prf,
	size_t derivedKeyLen,
	uint32_t msec
)