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_CIPHER ((psa_algorithm_t)0x04000000)
34
43
#define PSA_ALG_IS_CIPHER(alg) (((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_CIPHER)
44
56
#define PSA_ALG_IS_STREAM_CIPHER(alg) (((alg) & 0x7f800000) == 0x04800000)
57
114
#define PSA_ALG_STREAM_CIPHER ((psa_algorithm_t)0x04800100)
115
167
#define PSA_ALG_CTR ((psa_algorithm_t)0x04c01000)
168
198
#define PSA_ALG_CFB ((psa_algorithm_t)0x04c01100)
199
222
#define PSA_ALG_OFB ((psa_algorithm_t)0x04c01200)
223
250
#define PSA_ALG_XTS ((psa_algorithm_t)0x0440ff00)
251
275
#define PSA_ALG_CBC_NO_PADDING ((psa_algorithm_t)0x04404000)
276
300
#define PSA_ALG_CBC_PKCS7 ((psa_algorithm_t)0x04404100)
301
333
#define PSA_ALG_ECB_NO_PADDING ((psa_algorithm_t)0x04404400)
334
335
#ifdef __cplusplus
336
}
337
#endif
338
algorithm.h
Algorithm definitions for the PSA Crypto API.
Generated on Sat Jun 28 2025 19:41:34 by
1.9.1