Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
algorithm.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2024 TU Dresden
3
* Copyright (C) 2021 HAW Hamburg
4
*
5
* This file is subject to the terms and conditions of the GNU Lesser
6
* General Public License v2.1. See the file LICENSE in the top level
7
* directory for more details.
8
*/
9
10
#pragma once
11
24
#ifdef __cplusplus
25
extern
"C"
{
26
#endif
27
28
#include "
psa/algorithm.h
"
29
33
#define PSA_ALG_CATEGORY_ASYMMETRIC_ENCRYPTION ((psa_algorithm_t)0x07000000)
34
44
#define PSA_ALG_IS_ASYMMETRIC_ENCRYPTION(alg) \
45
(((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_ASYMMETRIC_ENCRYPTION)
46
55
#define PSA_ALG_IS_RSA_OAEP(alg) \
56
(((alg) & ~0x000000ff) == 0x07000300)
57
69
#define PSA_ALG_RSA_PKCS1V15_CRYPT ((psa_algorithm_t)0x07000200)
70
93
#define PSA_ALG_RSA_OAEP(hash_alg) \
94
((psa_algorithm_t)(0x07000300 | ((hash_alg) & 0x000000ff)))
95
96
#ifdef __cplusplus
97
}
98
#endif
99
algorithm.h
Algorithm definitions for the PSA Crypto API.
Generated on Sat Jun 28 2025 19:41:34 by
1.9.1