sha256_alt.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 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 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include "kernel_defines.h"
26 #include "riot_mbedtls_config.h"
27 
28 #if IS_ACTIVE(MBEDTLS_SHA256_ALT)
29 #include "hashes/sha256.h"
30 #include "hashes/sha224.h"
31 
35 typedef struct {
36  sha256_context_t riot_sha256_ctx;
37  uint8_t is224;
38 } mbedtls_sha256_context;
39 
40 #endif /* MBEDTLS_SHA256_ALT */
41 
42 #ifdef __cplusplus
43 }
44 #endif
Common macros and compiler attributes/pragmas configuration.
Configuration options (set of defines)
Header definitions for the SHA224 hash function.
Header definitions for the SHA256 hash function.
Structure to hold the SHA-2XX context.
Definition: sha2xx_common.h:61