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
46#ifdef __cplusplus
47extern "C" {
48#endif
49
52SHARKSSL_API int SharkSslPSACMAC_compute(psa_key_id_t key, const U8 *message, U32 messageLen,
53 U8 *mac, U16 macSize, U16 *macLen);
54
56SHARKSSL_API int SharkSslPSACMAC_verify(psa_key_id_t key, const U8 *message, U32 messageLen,
57 const U8 *mac, U16 macLen);
58
59#ifdef __cplusplus
60}
61#endif
62
63#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