Loading...
Searching...
No Matches
sha256_alt.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2020 HAW Hamburg
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
22#include "kernel_defines.h"
23#include "riot_mbedtls_config.h"
24
25#if IS_ACTIVE(MBEDTLS_SHA256_ALT)
26#include "hashes/sha256.h"
27#include "hashes/sha224.h"
28
32typedef struct {
33 sha256_context_t riot_sha256_ctx;
34 uint8_t is224;
35} mbedtls_sha256_context;
36
37#endif /* MBEDTLS_SHA256_ALT */
38
39#ifdef __cplusplus
40}
41#endif
sha2xx_context_t sha256_context_t
Context for cipher operations based on sha256.
Definition sha256.h:48
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.