MTB CAT1 Peripheral driver library

General Description

Functions

__STATIC_INLINE cy_en_crypto_status_t Cy_Crypto_Core_Hkdf_Extract (CRYPTO_Type *base, cy_en_crypto_sha_mode_t mode, uint8_t const *salt, uint32_t saltLength, uint8_t const *ikm, uint32_t ikmLength, uint8_t *prk)
 Performs HKDF Extract calculation. More...
 
__STATIC_INLINE cy_en_crypto_status_t Cy_Crypto_Core_Hkdf_Expand (CRYPTO_Type *base, cy_en_crypto_sha_mode_t mode, 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...
 
__STATIC_INLINE cy_en_crypto_status_t Cy_Crypto_Core_Hkdf (CRYPTO_Type *base, cy_en_crypto_sha_mode_t mode, 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_Crypto_Core_Hkdf_Extract()

__STATIC_INLINE cy_en_crypto_status_t Cy_Crypto_Core_Hkdf_Extract ( CRYPTO_Type *  base,
cy_en_crypto_sha_mode_t  mode,
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 CRYPTO instance.
modecy_en_crypto_sha_mode_t
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_crypto_status_t

◆ Cy_Crypto_Core_Hkdf_Expand()

__STATIC_INLINE cy_en_crypto_status_t Cy_Crypto_Core_Hkdf_Expand ( CRYPTO_Type *  base,
cy_en_crypto_sha_mode_t  mode,
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 CRYPTO instance.
modecy_en_crypto_sha_mode_t
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_crypto_status_t

◆ Cy_Crypto_Core_Hkdf()

__STATIC_INLINE cy_en_crypto_status_t Cy_Crypto_Core_Hkdf ( CRYPTO_Type *  base,
cy_en_crypto_sha_mode_t  mode,
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 CRYPTO instance.
modecy_en_crypto_sha_mode_t
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_crypto_status_t