Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
kernel_defines.h
Common macros and compiler attributes/pragmas configuration.
riot_mbedtls_config.h
Configuration options (set of defines)
sha224.h
Header definitions for the SHA224 hash function.
sha256.h
Header definitions for the SHA256 hash function.
sha2xx_context_t
Structure to hold the SHA-2XX context.
Definition:
sha2xx_common.h:61
Generated on Mon Oct 20 2025 13:02:26 by
1.9.1