Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
algorithm.h
Go to the documentation of this file.
1
/*
2
* SPDX-FileCopyrightText: 2024 TU Dresden
3
* SPDX-FileCopyrightText: 2021 HAW Hamburg
4
* SPDX-License-Identifier: LGPL-2.1-only
5
*/
6
7
#pragma once
8
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
25
#include "
psa/algorithm.h
"
26
30
#define PSA_ALG_CATEGORY_ASYMMETRIC_ENCRYPTION ((psa_algorithm_t)0x07000000)
31
41
#define PSA_ALG_IS_ASYMMETRIC_ENCRYPTION(alg) \
42
(((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_ASYMMETRIC_ENCRYPTION)
43
52
#define PSA_ALG_IS_RSA_OAEP(alg) \
53
(((alg) & ~0x000000ff) == 0x07000300)
54
66
#define PSA_ALG_RSA_PKCS1V15_CRYPT ((psa_algorithm_t)0x07000200)
67
90
#define PSA_ALG_RSA_OAEP(hash_alg) \
91
((psa_algorithm_t)(0x07000300 | ((hash_alg) & 0x000000ff)))
92
93
#ifdef __cplusplus
94
}
95
#endif
96
algorithm.h
Algorithm definitions for the PSA Crypto API.
Generated on Mon Nov 24 2025 18:43:16 by
1.9.1