MTB CAT1 Peripheral driver library

General Description

Functions

cy_en_cryptolite_status_t Cy_Cryptolite_Hkdf_Extract (CRYPTOLITE_Type *base, uint8_t const *salt, uint32_t saltLength, uint8_t const *ikm, uint32_t ikmLength, uint8_t *prk)
 Performs HKDF Extract calculation. More...
 
cy_en_cryptolite_status_t Cy_Cryptolite_Hkdf_Expand (CRYPTOLITE_Type *base, uint8_t const *prk, uint32_t prkLength, uint8_t const *info, uint32_t infoLength, uint8_t *okm, uint32_t okmLength)
 Performs HKDF Expand calculation. More...
 
cy_en_cryptolite_status_t Cy_Cryptolite_Hkdf (CRYPTOLITE_Type *base, uint8_t const *salt, uint32_t saltLength, uint8_t const *ikm, uint32_t ikmLength, uint8_t const *info, uint32_t infoLength, uint8_t *okm, uint32_t okmLength)
 Performs HKDF calculation. More...
 

Function Documentation

◆ Cy_Cryptolite_Hkdf_Extract()

cy_en_cryptolite_status_t Cy_Cryptolite_Hkdf_Extract ( CRYPTOLITE_Type *  base,
uint8_t const *  salt,
uint32_t  saltLength,
uint8_t const *  ikm,
uint32_t  ikmLength,
uint8_t *  prk 
)

Performs HKDF Extract calculation.

Parameters
baseThe pointer to the CRYPTOLITE instance.
saltThe pointer to salt.
saltLengthThe size of a salt.
ikmThe pointer to the Input Key material.
ikmLengthThe length of the IKM.
prkThe pointer to store the generated prk.
Returns
cy_en_cryptolite_status_t

◆ Cy_Cryptolite_Hkdf_Expand()

cy_en_cryptolite_status_t Cy_Cryptolite_Hkdf_Expand ( CRYPTOLITE_Type *  base,
uint8_t const *  prk,
uint32_t  prkLength,
uint8_t const *  info,
uint32_t  infoLength,
uint8_t *  okm,
uint32_t  okmLength 
)

Performs HKDF Expand calculation.

Parameters
baseThe pointer to the CRYPTOLITE instance.
prkThe pointer to the pseudo random key.
prkLengthThe length of the prk.
infoThe pointer to info.
infoLengthThe length of the info.
okmThe pointer to Output key material.
okmLengthThe length of okm to be generated.
Returns
cy_en_cryptolite_status_t

◆ Cy_Cryptolite_Hkdf()

cy_en_cryptolite_status_t Cy_Cryptolite_Hkdf ( CRYPTOLITE_Type *  base,
uint8_t const *  salt,
uint32_t  saltLength,
uint8_t const *  ikm,
uint32_t  ikmLength,
uint8_t const *  info,
uint32_t  infoLength,
uint8_t *  okm,
uint32_t  okmLength 
)

Performs HKDF calculation.

Parameters
baseThe pointer to the CRYPTOLITE instance.
saltThe pointer to salt.
saltLengthThe size of a salt.
ikmThe pointer to the Input Key material.
ikmLengthThe length of the IKM.
infoThe pointer to info.
infoLengthThe length of the info.
okmThe pointer to Output key material.
okmLengthThe length of okm to be generated.
Returns
cy_en_cryptolite_status_t