9#ifndef SDRV_CRYPTO_MAILBOX_HMAC_H
10#define SDRV_CRYPTO_MAILBOX_HMAC_H
31 uint8_t aut_info_ptr[4];
50 uint8_t aut_info_ptr[4];
104 uint8_t *
hmac, uint8_t *mac_buf);
uint32_t hmac(HASH_ALG hash_alg, uint8_t *key, uint16_t sp_key_idx, uint32_t key_bytes, uint8_t *msg, uint32_t msg_bytes, uint8_t *mac)
SemiDrive CRYPTO mailbox common api header file.
cmd_key_type_e
CRYPTO key type.
Definition: sdrv_crypto_mailbox_common.h:133
sdrv_crypto_error_status_e cmd_hmac_generate_mac(uint8_t mode, uint8_t *msg, uint32_t msg_bytes, cmd_key_type_e key_type, const uint8_t *key, uint16_t key_id, uint32_t key_bytes, uint8_t mac_bytes, uint8_t *out, uint8_t *mac_buf)
get hmac value
sdrv_crypto_error_status_e cmd_hmac_verify_mac(uint8_t mode, uint8_t *msg, uint32_t msg_bytes, cmd_key_type_e key_type, const uint8_t *key, uint16_t key_id, uint32_t key_bytes, uint8_t hmac_bytes, uint8_t *hmac, uint8_t *mac_buf)
verify hmac
crypto mailbox trng cmd interface
enum sdrv_crypto_error_status sdrv_crypto_error_status_e
CRYPTO error status return codes.
CRYPTO cmd of generate MAC.
Definition: sdrv_crypto_mailbox_hmac.h:18
uint8_t need_seed
Definition: sdrv_crypto_mailbox_hmac.h:20
uint8_t mode
Definition: sdrv_crypto_mailbox_hmac.h:21
uint8_t cmd_id
Definition: sdrv_crypto_mailbox_hmac.h:19
uint8_t mac_len
Definition: sdrv_crypto_mailbox_hmac.h:22
CRYPTO cmd of verify MAC.
Definition: sdrv_crypto_mailbox_hmac.h:37
uint8_t need_seed
Definition: sdrv_crypto_mailbox_hmac.h:39
uint8_t mode
Definition: sdrv_crypto_mailbox_hmac.h:40
uint8_t cmd_id
Definition: sdrv_crypto_mailbox_hmac.h:38
uint8_t mac_len
Definition: sdrv_crypto_mailbox_hmac.h:41