Structure defining WRAP configuration.

The structure defines the WRAP configuration required for the operation, which includes key type, key size, key buffer, and so on.

Public Attributes#

uint32_t

Type of the key.

uint16_t

BIT(0) is set: HMAC padding, else PKCS7 padding.

uint16_t

To determine HMAC SHA mode if HMAC padding is set, else reserved.

uint32_t

Size of the key.

uint8_t

Buffer to store the IV.

uint8_t

Key data wrapped or plain text.

Public Attribute Documentation#

key_type#

uint32_t sl_si91x_wrap_config_t::key_type

Type of the key.


Definition at line 61 of file components/device/silabs/si91x/wireless/crypto/wrap/inc/sl_si91x_wrap.h

padding#

uint16_t sl_si91x_wrap_config_t::padding

BIT(0) is set: HMAC padding, else PKCS7 padding.


Definition at line 62 of file components/device/silabs/si91x/wireless/crypto/wrap/inc/sl_si91x_wrap.h

hmac_sha_mode#

uint16_t sl_si91x_wrap_config_t::hmac_sha_mode

To determine HMAC SHA mode if HMAC padding is set, else reserved.


Definition at line 63 of file components/device/silabs/si91x/wireless/crypto/wrap/inc/sl_si91x_wrap.h

key_size#

uint32_t sl_si91x_wrap_config_t::key_size

Size of the key.


Definition at line 64 of file components/device/silabs/si91x/wireless/crypto/wrap/inc/sl_si91x_wrap.h

wrap_iv_mode#

sl_si91x_crypto_wrap_mode_t sl_si91x_wrap_config_t::wrap_iv_mode

Wrap IV mode.


Definition at line 65 of file components/device/silabs/si91x/wireless/crypto/wrap/inc/sl_si91x_wrap.h

wrap_iv#

uint8_t sl_si91x_wrap_config_t::wrap_iv[SL_SI91X_IV_SIZE]

Buffer to store the IV.


Definition at line 66 of file components/device/silabs/si91x/wireless/crypto/wrap/inc/sl_si91x_wrap.h

key_buffer#

uint8_t sl_si91x_wrap_config_t::key_buffer[SL_SI91X_WRAP_KEY_BUFFER_SIZE]

Key data wrapped or plain text.


Definition at line 67 of file components/device/silabs/si91x/wireless/crypto/wrap/inc/sl_si91x_wrap.h