Loading...
Searching...
No Matches
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
20
21#ifdef __cplusplus
22extern "C" {
23#endif
24
25#include "psa/algorithm.h"
26
30#define PSA_ALG_CATEGORY_CIPHER ((psa_algorithm_t)0x04000000)
31
40#define PSA_ALG_IS_CIPHER(alg) (((alg) & PSA_ALG_CATEGORY_MASK) == PSA_ALG_CATEGORY_CIPHER)
41
53#define PSA_ALG_IS_STREAM_CIPHER(alg) (((alg) & 0x7f800000) == 0x04800000)
54
111#define PSA_ALG_STREAM_CIPHER ((psa_algorithm_t)0x04800100)
112
164#define PSA_ALG_CTR ((psa_algorithm_t)0x04c01000)
165
195#define PSA_ALG_CFB ((psa_algorithm_t)0x04c01100)
196
219#define PSA_ALG_OFB ((psa_algorithm_t)0x04c01200)
220
247#define PSA_ALG_XTS ((psa_algorithm_t)0x0440ff00)
248
272#define PSA_ALG_CBC_NO_PADDING ((psa_algorithm_t)0x04404000)
273
297#define PSA_ALG_CBC_PKCS7 ((psa_algorithm_t)0x04404100)
298
330#define PSA_ALG_ECB_NO_PADDING ((psa_algorithm_t)0x04404400)
331
332#ifdef __cplusplus
333}
334#endif
335
Algorithm definitions for the PSA Crypto API.