nrfxlib API 3.3.99
Loading...
Searching...
No Matches
ocrypto_aes_cmac.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2016 - 2025 Nordic Semiconductor ASA
3 * Copyright (c) since 2013 Oberon microsystems AG
4 *
5 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
6 */
7
8
28#ifndef OCRYPTO_AES_CMAC_H
29#define OCRYPTO_AES_CMAC_H
30
31#include <stddef.h>
32#include <stdint.h>
33
34
35#ifdef __cplusplus
36extern "C" {
37#endif
38
39
43#define ocrypto_aes_cmac_prf128_BYTES (16)
44
56 uint8_t *tag, size_t tag_len,
57 const uint8_t *msg, size_t msg_len,
58 const uint8_t *key, size_t size);
59
71 const uint8_t *msg, size_t msg_len,
72 const uint8_t *key, size_t key_len);
73
74
75#ifdef __cplusplus
76}
77#endif
78
79#endif
80
void ocrypto_aes_cmac_authenticate(uint8_t *tag, size_t tag_len, const uint8_t *msg, size_t msg_len, const uint8_t *key, size_t size)
void ocrypto_aes_cmac_prf128(uint8_t prf[(16)], const uint8_t *msg, size_t msg_len, const uint8_t *key, size_t key_len)
#define ocrypto_aes_cmac_prf128_BYTES
Definition ocrypto_aes_cmac.h:43