0.01.00
pbkdf2_cmac.h File Reference

This file defines the PBKDF2 using CMAC C APIs. More...

#include "openthread-core-config.h"
#include "utils/wrap_stdbool.h"
#include "utils/wrap_stdint.h"

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...
 

Detailed Description

This file defines the PBKDF2 using CMAC C APIs.

Function Documentation

§ otPbkdf2Cmac()

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).

Parameters
[in]aPasswordPassword to use when generating key.
[in]aPasswordLenLength of password.
[in]aSaltSalt to use when generating key.
[in]aSaltLenLength of salt.
[in]aIterationCounterIteration count.
[in]aKeyLenLength of generated key in bytes.
[out]aKeyA pointer to the generated key.