![]() |
0.01.00
|
This file defines the PBKDF2 using CMAC C APIs. More...
Go to the source code of this file.
Macros | |
#define | OT_PBKDF2_SALT_MAX_LEN 30 |
Functions | |
void | otPbkdf2Cmac (const uint8_t *aPassword, uint16_t aPasswordLen, const uint8_t *aSalt, uint16_t aSaltLen, uint32_t aIterationCounter, uint16_t aKeyLen, uint8_t *aKey) |
This method perform PKCS#5 PBKDF2 using CMAC (AES-CMAC-PRF-128). More... | |
This file defines the PBKDF2 using CMAC C APIs.
void otPbkdf2Cmac | ( | const uint8_t * | aPassword, |
uint16_t | aPasswordLen, | ||
const uint8_t * | aSalt, | ||
uint16_t | aSaltLen, | ||
uint32_t | aIterationCounter, | ||
uint16_t | aKeyLen, | ||
uint8_t * | aKey | ||
) |
This method perform PKCS#5 PBKDF2 using CMAC (AES-CMAC-PRF-128).
[in] | aPassword | Password to use when generating key. |
[in] | aPasswordLen | Length of password. |
[in] | aSalt | Salt to use when generating key. |
[in] | aSaltLen | Length of salt. |
[in] | aIterationCounter | Iteration count. |
[in] | aKeyLen | Length of generated key in bytes. |
[out] | aKey | A pointer to the generated key. |