#include <stddef.h>
#include <stdint.h>
#include <third_party/mbedtls/include/psa/crypto.h>
#include <ti/drivers/cryptoutils/cryptokey/CryptoKey.h>
#include <ti/devices/DeviceFamily.h>
#include <ti/drivers/sha2/SHA2XXF3HSM.h>
#include <ti/drivers/aescmac/AESCMACXXF3.h>
Go to the source code of this file.
|
| static struct ti_psa_mac_operation_s | ti_psa_mac_operation_init (void) |
| |
| psa_status_t | ti_psa_mac_abort (psa_mac_operation_t *psa_operation) |
| |
| psa_status_t | ti_psa_mac_sign_finish (psa_mac_operation_t *psa_operation, uint8_t *mac, size_t mac_size, size_t *mac_length) |
| |
| psa_status_t | ti_psa_mac_sign_setup (psa_mac_operation_t *psa_operation, mbedtls_svc_key_id_t key, psa_algorithm_t alg) |
| |
| psa_status_t | ti_psa_mac_update (psa_mac_operation_t *psa_operation, const uint8_t *input, size_t input_length) |
| |
| psa_status_t | ti_psa_mac_verify_finish (psa_mac_operation_t *psa_operation, const uint8_t *mac, size_t mac_length) |
| |
| psa_status_t | ti_psa_mac_verify_setup (psa_mac_operation_t *psa_operation, mbedtls_svc_key_id_t key, psa_algorithm_t alg) |
| |
| psa_status_t | ti_psa_mac_compute (mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, uint8_t *mac, size_t mac_size, size_t *mac_length) |
| |
| psa_status_t | ti_psa_mac_verify (mbedtls_svc_key_id_t key, psa_algorithm_t alg, const uint8_t *input, size_t input_length, const uint8_t *mac, size_t mac_length) |
| |
§ TI_PSA_MAC_OPERATION_INIT
| #define TI_PSA_MAC_OPERATION_INIT |
Value: { \
0 \
}
struct ti_psa_mac_operation_s ti_psa_mac_operation_t
Definition: ti_psa_crypto_mac.h:108
Referenced by ti_psa_mac_operation_init().
§ ti_psa_mac_operation_t
§ ti_psa_mac_operation_init()
§ ti_psa_mac_abort()
| psa_status_t ti_psa_mac_abort |
( |
psa_mac_operation_t * |
psa_operation | ) |
|
§ ti_psa_mac_sign_finish()
| psa_status_t ti_psa_mac_sign_finish |
( |
psa_mac_operation_t * |
psa_operation, |
|
|
uint8_t * |
mac, |
|
|
size_t |
mac_size, |
|
|
size_t * |
mac_length |
|
) |
| |
§ ti_psa_mac_sign_setup()
| psa_status_t ti_psa_mac_sign_setup |
( |
psa_mac_operation_t * |
psa_operation, |
|
|
mbedtls_svc_key_id_t |
key, |
|
|
psa_algorithm_t |
alg |
|
) |
| |
§ ti_psa_mac_update()
| psa_status_t ti_psa_mac_update |
( |
psa_mac_operation_t * |
psa_operation, |
|
|
const uint8_t * |
input, |
|
|
size_t |
input_length |
|
) |
| |
§ ti_psa_mac_verify_finish()
| psa_status_t ti_psa_mac_verify_finish |
( |
psa_mac_operation_t * |
psa_operation, |
|
|
const uint8_t * |
mac, |
|
|
size_t |
mac_length |
|
) |
| |
§ ti_psa_mac_verify_setup()
| psa_status_t ti_psa_mac_verify_setup |
( |
psa_mac_operation_t * |
psa_operation, |
|
|
mbedtls_svc_key_id_t |
key, |
|
|
psa_algorithm_t |
alg |
|
) |
| |
§ ti_psa_mac_compute()
| psa_status_t ti_psa_mac_compute |
( |
mbedtls_svc_key_id_t |
key, |
|
|
psa_algorithm_t |
alg, |
|
|
const uint8_t * |
input, |
|
|
size_t |
input_length, |
|
|
uint8_t * |
mac, |
|
|
size_t |
mac_size, |
|
|
size_t * |
mac_length |
|
) |
| |
§ ti_psa_mac_verify()
| psa_status_t ti_psa_mac_verify |
( |
mbedtls_svc_key_id_t |
key, |
|
|
psa_algorithm_t |
alg, |
|
|
const uint8_t * |
input, |
|
|
size_t |
input_length, |
|
|
const uint8_t * |
mac, |
|
|
size_t |
mac_length |
|
) |
| |