Swift: How to call CCKeyDerivationPBKDF from Swift
I'm trying to call CCKeyDerivationPBKDF from Swift. I've imported the required header in my Project-Bridging-Header.h: #import <CommonCrypto/CommonKeyDerivation.h> (Btw, the bridging header appears to be working correctly for importing other Objective C code in my project). In Xcode I can jump from my .swift file to the definition shown here: int CCKeyDerivationPBKDF( CCPBKDFAlgorithm algorithm, const char *password, size_t passwordLen, const uint8_t *salt, size_t saltLen, CCPseudoRandomAlgorithm prf, uint rounds, uint8_t *derivedKey, size_t derivedKeyLen) Finally, when I attempt to call the