Loading...
Searching...
No Matches
psa_mac.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2021 HAW Hamburg
3 *
4 * This file is subject to the terms and conditions of the GNU Lesser
5 * General Public License v2.1. See the file LICENSE in the top level
6 * directory for more details.
7 */
8
21#ifndef PSA_MAC_H
22#define PSA_MAC_H
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28#include "kernel_defines.h"
29#include "psa/crypto.h"
30#include "psa/crypto_contexts.h"
31
47 const uint8_t *key_buffer,
48 size_t key_buffer_size,
49 const uint8_t *input,
50 size_t input_length,
51 uint8_t *mac,
52 size_t mac_size,
53 size_t *mac_length);
54
55#ifdef __cplusplus
56}
57#endif
58
59#endif /* PSA_MAC_H */
Function declarations for PSA Crypto.
Context definitions for PSA Crypto.
psa_status_t psa_mac_compute_hmac_sha256(const psa_key_attributes_t *attributes, const uint8_t *key_buffer, size_t key_buffer_size, const uint8_t *input, size_t input_length, uint8_t *mac, size_t mac_size, size_t *mac_length)
Low level wrapper function to call a driver for a HMAC SHA256 computation See psa_mac_compute()
Common macros and compiler attributes/pragmas configuration.
int32_t psa_status_t
Status code type used for all PSA Certified APIs.
Definition error.h:41
Structure storing key attributes.
Definition attributes.h:52