68typedef enum : uint16_t {
Annotation-attribute framework macros for ra8-firmware.
#define RA8_PRIV
Module-private helper: shared across TUs but only inside one library.
Error Code Definitions for ra8-firmware.
ra8_err_codes_t ra8_err_t
Canonical error-return type used by every ra8-firmware API.
ra8_sec_cmac_limits_t
Sizing constants for the secure-side AES-CMAC primitive.
@ k_ra8_sec_cmac_key_256
AES-256 key length in bytes.
@ k_ra8_sec_cmac_tag_bytes
CMAC tag length (one AES block).
@ k_ra8_sec_cmac_key_128
AES-128 key length in bytes.
@ k_ra8_sec_cmac_max_msg_bytes
Largest authenticated message.
ra8_err_t priv_ra8_sec_cmac_compute(const uint8_t *key, uint16_t key_len, const uint8_t *msg, uint32_t msg_len, uint8_t *out_mac)
Compute the AES-CMAC tag of a message under a symmetric key.
ra8_err_t priv_ra8_sec_cmac_verify(const uint8_t *key, uint16_t key_len, const uint8_t *msg, uint32_t msg_len, const uint8_t *mac, uint16_t mac_len)
Verify an AES-CMAC tag against a message under a symmetric key.