SharkSSL C/C++ Reference
TLS, cryptography, certificates, and PSA integration
SharkSslPSAConsumerCMAC.h
Go to the documentation of this file.
1
37#ifndef SHARKSSL_PSA_CONSUMER_CMAC_H
38#define SHARKSSL_PSA_CONSUMER_CMAC_H
39
40#include "SharkSSL.h"
41
42#if (!SHARKSSL_PSA_CONSUMER)
43#error SharkSslPSAConsumerCMAC.h requires SHARKSSL_PSA_CONSUMER
44#endif
45
48SHARKSSL_API int SharkSslPSACMAC_compute(psa_key_id_t key, const U8 *message, U32 messageLen,
49 U8 *mac, U16 macSize, U16 *macLen);
50
52SHARKSSL_API int SharkSslPSACMAC_verify(psa_key_id_t key, const U8 *message, U32 messageLen,
53 const U8 *mac, U16 macLen);
54
55#endif
TLS objects, certificate/session operations, and public-key interfaces.
SHARKSSL_API int SharkSslPSACMAC_verify(psa_key_id_t key, const U8 *message, U32 messageLen, const U8 *mac, U16 macLen)
Verify AES-CMAC with a caller-owned PSA key authorized for VERIFY_MESSAGE.
SHARKSSL_API int SharkSslPSACMAC_compute(psa_key_id_t key, const U8 *message, U32 messageLen, U8 *mac, U16 macSize, U16 *macLen)
Compute AES-CMAC with a caller-owned PSA key authorized for SIGN_MESSAGE.
uint32_t psa_key_id_t
Definition: crypto.h:60