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 
9 #pragma once
10 
23 #ifdef __cplusplus
24 extern "C" {
25 #endif
26 
27 #include "kernel_defines.h"
28 #include "psa/crypto.h"
29 #include "psa/crypto_contexts.h"
30 
36  const uint8_t *key_buffer,
37  size_t key_buffer_size,
38  const uint8_t *input,
39  size_t input_length,
40  uint8_t *mac,
41  size_t mac_size,
42  size_t *mac_length);
43 
44 #ifdef __cplusplus
45 }
46 #endif
47 
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:40
Structure storing key attributes.
Definition: attributes.h:51