|
| 1 | +// SPDX-FileCopyrightText: Copyright 2018-2024 Arm Limited and/or its affiliates <[email protected]> |
| 2 | +// SPDX-License-Identifier: Apache-2.0 |
| 3 | + |
| 4 | +typedef uint8_t psa_slh_dsa_family_t; |
| 5 | +#define PSA_ALG_DETERMINISTIC_HASH_ML_DSA(hash_alg) \ |
| 6 | + /* specification-defined value */ |
| 7 | +#define PSA_ALG_DETERMINISTIC_HASH_SLH_DSA(hash_alg) \ |
| 8 | + /* specification-defined value */ |
| 9 | +#define PSA_ALG_DETERMINISTIC_ML_DSA ((psa_algorithm_t) 0x06004500) |
| 10 | +#define PSA_ALG_DETERMINISTIC_SLH_DSA ((psa_algorithm_t) 0x06004100) |
| 11 | +#define PSA_ALG_HASH_ML_DSA(hash_alg) /* specification-defined value */ |
| 12 | +#define PSA_ALG_HASH_SLH_DSA(hash_alg) /* specification-defined value */ |
| 13 | +#define PSA_ALG_IS_DETERMINISTIC_HASH_ML_DSA(alg) \ |
| 14 | + /* specification-defined value */ |
| 15 | +#define PSA_ALG_IS_DETERMINISTIC_HASH_SLH_DSA(alg) \ |
| 16 | + /* specification-defined value */ |
| 17 | +#define PSA_ALG_IS_HASH_ML_DSA(alg) /* specification-defined value */ |
| 18 | +#define PSA_ALG_IS_HASH_SLH_DSA(alg) /* specification-defined value */ |
| 19 | +#define PSA_ALG_IS_HEDGED_HASH_ML_DSA(alg) /* specification-defined value */ |
| 20 | +#define PSA_ALG_IS_HEDGED_HASH_SLH_DSA(alg) /* specification-defined value */ |
| 21 | +#define PSA_ALG_IS_ML_DSA(alg) /* specification-defined value */ |
| 22 | +#define PSA_ALG_IS_SLH_DSA(alg) /* specification-defined value */ |
| 23 | +#define PSA_ALG_ML_DSA ((psa_algorithm_t) 0x06004400) |
| 24 | +#define PSA_ALG_ML_KEM ((psa_algorithm_t)0x0b000200) |
| 25 | +#define PSA_ALG_SHAKE128_256 ((psa_algorithm_t)0x02000016) |
| 26 | +#define PSA_ALG_SLH_DSA ((psa_algorithm_t) 0x06004000) |
| 27 | +#define PSA_KEY_TYPE_IS_ML_DSA(type) /* specification-defined value */ |
| 28 | +#define PSA_KEY_TYPE_IS_ML_KEM(type) /* specification-defined value */ |
| 29 | +#define PSA_KEY_TYPE_IS_SLH_DSA(type) /* specification-defined value */ |
| 30 | +#define PSA_KEY_TYPE_IS_SLH_DSA_KEY_PAIR(type) \ |
| 31 | + /* specification-defined value */ |
| 32 | +#define PSA_KEY_TYPE_IS_SLH_DSA_PUBLIC_KEY(type) \ |
| 33 | + /* specification-defined value */ |
| 34 | +#define PSA_KEY_TYPE_ML_DSA_KEY_PAIR ((psa_key_type_t)0x7002) |
| 35 | +#define PSA_KEY_TYPE_ML_DSA_PUBLIC_KEY ((psa_key_type_t)0x4002) |
| 36 | +#define PSA_KEY_TYPE_ML_KEM_KEY_PAIR ((psa_key_type_t)0x7004) |
| 37 | +#define PSA_KEY_TYPE_ML_KEM_PUBLIC_KEY ((psa_key_type_t)0x4004) |
| 38 | +#define PSA_KEY_TYPE_SLH_DSA_GET_FAMILY(type) /* specification-defined value */ |
| 39 | +#define PSA_KEY_TYPE_SLH_DSA_KEY_PAIR(set) /* specification-defined value */ |
| 40 | +#define PSA_KEY_TYPE_SLH_DSA_PUBLIC_KEY(set) /* specification-defined value */ |
| 41 | +#define PSA_SLH_DSA_FAMILY_SHA2_F ((psa_slh_dsa_family_t) 0x04) |
| 42 | +#define PSA_SLH_DSA_FAMILY_SHA2_S ((psa_slh_dsa_family_t) 0x02) |
| 43 | +#define PSA_SLH_DSA_FAMILY_SHAKE_F ((psa_slh_dsa_family_t) 0x0d) |
| 44 | +#define PSA_SLH_DSA_FAMILY_SHAKE_S ((psa_slh_dsa_family_t) 0x0b) |
0 commit comments