1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2025-01-18 04:32:52 +01:00
RIOT/sys/include/hashes/psa/riot_hashes.h
2024-07-13 04:35:21 +02:00

94 lines
1.9 KiB
C

/*
* Copyright (C) 2022 HAW Hamburg
*
* This file is subject to the terms and conditions of the GNU Lesser
* General Public License v2.1. See the file LICENSE in the top level
* directory for more details.
*/
/**
* @ingroup sys_psa_crypto
* @{
*
* @brief Contexts for the RIOT hashes module
*
* @author Lena Boeckmann <lena.boeckmann@haw-hamburg.de>
*
*/
#ifndef HASHES_PSA_RIOT_HASHES_H
#define HASHES_PSA_RIOT_HASHES_H
#ifdef __cplusplus
extern "C" {
#endif
#include "kernel_defines.h"
#if (IS_USED(MODULE_PSA_RIOT_HASHES_MD5))
#include "hashes/md5.h"
typedef md5_ctx_t psa_hashes_md5_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA_1))
#include "hashes/sha1.h"
typedef sha1_context psa_hashes_sha1_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA_224))
#include "hashes/sha224.h"
typedef sha224_context_t psa_hashes_sha224_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA_256))
#include "hashes/sha256.h"
typedef sha256_context_t psa_hashes_sha256_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA_384))
#include "hashes/sha384.h"
typedef sha384_context_t psa_hashes_sha384_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512))
#include "hashes/sha512.h"
typedef sha512_context_t psa_hashes_sha512_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512_224))
#include "hashes/sha512_224.h"
typedef sha512_224_context_t psa_hashes_sha512_224_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA_512_256))
#include "hashes/sha512_256.h"
typedef sha512_256_context_t psa_hashes_sha512_256_ctx_t;
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_HMAC_SHA256))
#include "hashes/sha256.h"
#endif
#if (IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_256) \
|| IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_384) \
|| IS_USED(MODULE_PSA_RIOT_HASHES_SHA3_512))
#include "hashes/sha3.h"
typedef keccak_state_t psa_hashes_sha3_ctx_t;
#endif
#ifdef __cplusplus
}
#endif
#endif /* HASHES_PSA_RIOT_HASHES_H */
/** @} */