pub unsafe extern "C" fn otPlatCryptoPbkdf2GenerateKey(
aPassword: *const u8,
aPasswordLen: u16,
aSalt: *const u8,
aSaltLen: u16,
aIterationCounter: u32,
aKeyLen: u16,
aKey: *mut u8,
) -> otError
Expand description
Perform PKCS#5 PBKDF2 using CMAC (AES-CMAC-PRF-128).
@param[in] aPassword Password to use when generating key. @param[in] aPasswordLen Length of password. @param[in] aSalt Salt to use when generating key. @param[in] aSaltLen Length of salt. @param[in] aIterationCounter Iteration count. @param[in] aKeyLen Length of generated key in bytes. @param[out] aKey A pointer to the generated key.
@retval OT_ERROR_NONE A new key-pair was generated successfully. @retval OT_ERROR_NO_BUFS Failed to allocate buffer for key generation. @retval OT_ERROR_NOT_CAPABLE Feature not supported. @retval OT_ERROR_FAILED Failed to generate key.