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