nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
cracen_hmac.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2025 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
17#ifndef CRACEN_HMAC_H
18#define CRACEN_HMAC_H
19
20#include <psa/crypto.h>
21#include <stdint.h>
22
23int mac_create_hmac(const struct sxhashalg *hashalg, struct sxhash *hashopctx, const uint8_t *key,
24 size_t keysz, uint8_t *workmem, size_t workmemsz);
25
26int hmac_produce(struct sxhash *hashctx, const struct sxhashalg *hashalg, uint8_t *out, size_t sz,
27 uint8_t *workmem);
28
31#endif /* CRACEN_HMAC_H */
int mac_create_hmac(const struct sxhashalg *hashalg, struct sxhash *hashopctx, const uint8_t *key, size_t keysz, uint8_t *workmem, size_t workmemsz)
int hmac_produce(struct sxhash *hashctx, const struct sxhashalg *hashalg, uint8_t *out, size_t sz, uint8_t *workmem)