Structure defines the PSA AES Multipart configuration.
This structure defines PSA AES Multipart configuration required for the operation which includes type of operation, input message, length of input message, key configuration structure, and so on.
Public Attributes#
AES Mode.
Encryption or decryption.
Pointer to the input message.
Length of the message.
Initialization vector.
"Operation is in a valid streaming state" flag. Set to 1 by cipher_set_iv for CBC/CTR (after a successful FIRST_CHUNK send) and pre-set to 1 by setup_common for ECB (which has no IV). Cleared back to 0 by cipher_update on any failure path so cipher_finish can refuse to send LAST_CHUNK against an indeterminate FW context. cipher_finish gates on iv_flag != 0 as the single readiness check.
Key configuration.
Flag to indicate chunk number.
Cumulative bytes successfully streamed through cipher_update across the lifetime of the operation; used by cipher_finish to validate CBC/ECB block alignment.
Public Attribute Documentation#
encrypt_decrypt#
sl_si91x_aes_type_t sli_si91x_psa_aes_multipart_config_t::encrypt_decrypt
Encryption or decryption.
iv_flag#
uint8_t sli_si91x_psa_aes_multipart_config_t::iv_flag
"Operation is in a valid streaming state" flag. Set to 1 by cipher_set_iv for CBC/CTR (after a successful FIRST_CHUNK send) and pre-set to 1 by setup_common for ECB (which has no IV). Cleared back to 0 by cipher_update on any failure path so cipher_finish can refuse to send LAST_CHUNK against an indeterminate FW context. cipher_finish gates on iv_flag != 0 as the single readiness check.
key_config#
sl_si91x_aes_key_config_t sli_si91x_psa_aes_multipart_config_t::key_config
Key configuration.
processed_length#
uint32_t sli_si91x_psa_aes_multipart_config_t::processed_length
Cumulative bytes successfully streamed through cipher_update across the lifetime of the operation; used by cipher_finish to validate CBC/ECB block alignment.