Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 1 | /* |
| 2 | * Copyright (c) 2019-2020, Arm Limited. All rights reserved. |
| 3 | * |
| 4 | * SPDX-License-Identifier: BSD-3-Clause |
| 5 | * |
| 6 | */ |
Antonio de Angelis | 04debbd | 2019-10-14 12:12:52 +0100 | [diff] [blame] | 7 | /** |
| 8 | * \file psa/crypto_compat.h |
| 9 | * |
| 10 | * \brief PSA cryptography module: Backward compatibility aliases |
| 11 | * |
| 12 | * This header declares alternative names for macro and functions. |
| 13 | * New application code should not use these names. |
| 14 | * These names may be removed in a future version of Mbed Crypto. |
| 15 | * |
| 16 | * \note This file may not be included directly. Applications must |
| 17 | * include psa/crypto.h. |
| 18 | */ |
Antonio de Angelis | 04debbd | 2019-10-14 12:12:52 +0100 | [diff] [blame] | 19 | |
| 20 | #ifndef PSA_CRYPTO_COMPAT_H |
| 21 | #define PSA_CRYPTO_COMPAT_H |
| 22 | |
| 23 | #ifdef __cplusplus |
| 24 | extern "C" { |
| 25 | #endif |
| 26 | |
| 27 | #if !defined(MBEDTLS_DEPRECATED_REMOVED) |
| 28 | |
| 29 | /* |
| 30 | * Mechanism for declaring deprecated values |
| 31 | */ |
| 32 | #if defined(MBEDTLS_DEPRECATED_WARNING) && !defined(MBEDTLS_PSA_DEPRECATED) |
| 33 | #define MBEDTLS_PSA_DEPRECATED __attribute__((deprecated)) |
| 34 | #else |
| 35 | #define MBEDTLS_PSA_DEPRECATED |
| 36 | #endif |
| 37 | |
| 38 | typedef MBEDTLS_PSA_DEPRECATED size_t mbedtls_deprecated_size_t; |
| 39 | typedef MBEDTLS_PSA_DEPRECATED psa_status_t mbedtls_deprecated_psa_status_t; |
| 40 | typedef MBEDTLS_PSA_DEPRECATED psa_key_usage_t mbedtls_deprecated_psa_key_usage_t; |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 41 | typedef MBEDTLS_PSA_DEPRECATED psa_ecc_family_t mbedtls_deprecated_psa_ecc_family_t; |
| 42 | typedef MBEDTLS_PSA_DEPRECATED psa_dh_family_t mbedtls_deprecated_psa_dh_family_t; |
| 43 | typedef MBEDTLS_PSA_DEPRECATED psa_ecc_family_t psa_ecc_curve_t; |
| 44 | typedef MBEDTLS_PSA_DEPRECATED psa_dh_family_t psa_dh_group_t; |
| 45 | |
| 46 | #define PSA_KEY_TYPE_GET_CURVE PSA_KEY_TYPE_ECC_GET_FAMILY |
| 47 | #define PSA_KEY_TYPE_GET_GROUP PSA_KEY_TYPE_DH_GET_FAMILY |
Antonio de Angelis | 04debbd | 2019-10-14 12:12:52 +0100 | [diff] [blame] | 48 | |
| 49 | #define MBEDTLS_DEPRECATED_CONSTANT( type, value ) \ |
| 50 | ( (mbedtls_deprecated_##type) ( value ) ) |
| 51 | |
| 52 | /* |
| 53 | * Deprecated PSA Crypto error code definitions (PSA Crypto API <= 1.0 beta2) |
| 54 | */ |
| 55 | #define PSA_ERROR_UNKNOWN_ERROR \ |
| 56 | MBEDTLS_DEPRECATED_CONSTANT( psa_status_t, PSA_ERROR_GENERIC_ERROR ) |
| 57 | #define PSA_ERROR_OCCUPIED_SLOT \ |
| 58 | MBEDTLS_DEPRECATED_CONSTANT( psa_status_t, PSA_ERROR_ALREADY_EXISTS ) |
| 59 | #define PSA_ERROR_EMPTY_SLOT \ |
| 60 | MBEDTLS_DEPRECATED_CONSTANT( psa_status_t, PSA_ERROR_DOES_NOT_EXIST ) |
| 61 | #define PSA_ERROR_INSUFFICIENT_CAPACITY \ |
| 62 | MBEDTLS_DEPRECATED_CONSTANT( psa_status_t, PSA_ERROR_INSUFFICIENT_DATA ) |
| 63 | #define PSA_ERROR_TAMPERING_DETECTED \ |
| 64 | MBEDTLS_DEPRECATED_CONSTANT( psa_status_t, PSA_ERROR_CORRUPTION_DETECTED ) |
| 65 | |
| 66 | /* |
| 67 | * Deprecated PSA Crypto numerical encodings (PSA Crypto API <= 1.0 beta3) |
| 68 | */ |
| 69 | #define PSA_KEY_USAGE_SIGN \ |
| 70 | MBEDTLS_DEPRECATED_CONSTANT( psa_key_usage_t, PSA_KEY_USAGE_SIGN_HASH ) |
| 71 | #define PSA_KEY_USAGE_VERIFY \ |
| 72 | MBEDTLS_DEPRECATED_CONSTANT( psa_key_usage_t, PSA_KEY_USAGE_VERIFY_HASH ) |
| 73 | |
| 74 | /* |
| 75 | * Deprecated PSA Crypto size calculation macros (PSA Crypto API <= 1.0 beta3) |
| 76 | */ |
| 77 | #define PSA_ASYMMETRIC_SIGNATURE_MAX_SIZE \ |
| 78 | MBEDTLS_DEPRECATED_CONSTANT( size_t, PSA_SIGNATURE_MAX_SIZE ) |
| 79 | #define PSA_ASYMMETRIC_SIGN_OUTPUT_SIZE( key_type, key_bits, alg ) \ |
| 80 | MBEDTLS_DEPRECATED_CONSTANT( size_t, PSA_SIGN_OUTPUT_SIZE( key_type, key_bits, alg ) ) |
| 81 | |
Soby Mathew | fd247c4 | 2020-02-24 10:23:43 +0000 | [diff] [blame] | 82 | /* |
| 83 | * Deprecated PSA Crypto function names (PSA Crypto API <= 1.0 beta3) |
| 84 | */ |
| 85 | MBEDTLS_PSA_DEPRECATED psa_status_t psa_asymmetric_sign( psa_key_handle_t key, |
| 86 | psa_algorithm_t alg, |
| 87 | const uint8_t *hash, |
| 88 | size_t hash_length, |
| 89 | uint8_t *signature, |
| 90 | size_t signature_size, |
| 91 | size_t *signature_length ); |
| 92 | |
| 93 | MBEDTLS_PSA_DEPRECATED psa_status_t psa_asymmetric_verify( psa_key_handle_t key, |
| 94 | psa_algorithm_t alg, |
| 95 | const uint8_t *hash, |
| 96 | size_t hash_length, |
| 97 | const uint8_t *signature, |
| 98 | size_t signature_length ); |
| 99 | |
Antonio de Angelis | 04debbd | 2019-10-14 12:12:52 +0100 | [diff] [blame] | 100 | #endif /* MBEDTLS_DEPRECATED_REMOVED */ |
| 101 | |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 102 | /* |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 103 | * Size-specific elliptic curve families. |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 104 | */ |
| 105 | #define PSA_ECC_CURVE_SECP160K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 106 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 107 | #define PSA_ECC_CURVE_SECP192K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 108 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 109 | #define PSA_ECC_CURVE_SECP224K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 110 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 111 | #define PSA_ECC_CURVE_SECP256K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 112 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 113 | #define PSA_ECC_CURVE_SECP160R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 114 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 115 | #define PSA_ECC_CURVE_SECP192R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 116 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 117 | #define PSA_ECC_CURVE_SECP224R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 118 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 119 | #define PSA_ECC_CURVE_SECP256R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 120 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 121 | #define PSA_ECC_CURVE_SECP384R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 122 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 123 | #define PSA_ECC_CURVE_SECP521R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 124 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 125 | #define PSA_ECC_CURVE_SECP160R2 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 126 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R2 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 127 | #define PSA_ECC_CURVE_SECT163K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 128 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 129 | #define PSA_ECC_CURVE_SECT233K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 130 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 131 | #define PSA_ECC_CURVE_SECT239K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 132 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 133 | #define PSA_ECC_CURVE_SECT283K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 134 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 135 | #define PSA_ECC_CURVE_SECT409K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 136 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 137 | #define PSA_ECC_CURVE_SECT571K1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 138 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_K1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 139 | #define PSA_ECC_CURVE_SECT163R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 140 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 141 | #define PSA_ECC_CURVE_SECT193R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 142 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 143 | #define PSA_ECC_CURVE_SECT233R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 144 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 145 | #define PSA_ECC_CURVE_SECT283R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 146 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 147 | #define PSA_ECC_CURVE_SECT409R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 148 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 149 | #define PSA_ECC_CURVE_SECT571R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 150 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 151 | #define PSA_ECC_CURVE_SECT163R2 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 152 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R2 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 153 | #define PSA_ECC_CURVE_SECT193R2 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 154 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R2 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 155 | #define PSA_ECC_CURVE_BRAINPOOL_P256R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 156 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_BRAINPOOL_P_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 157 | #define PSA_ECC_CURVE_BRAINPOOL_P384R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 158 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_BRAINPOOL_P_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 159 | #define PSA_ECC_CURVE_BRAINPOOL_P512R1 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 160 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_BRAINPOOL_P_R1 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 161 | #define PSA_ECC_CURVE_CURVE25519 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 162 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_MONTGOMERY ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 163 | #define PSA_ECC_CURVE_CURVE448 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 164 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_MONTGOMERY ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 165 | |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 166 | /* |
| 167 | * Curves that changed name due to PSA specification. |
| 168 | */ |
| 169 | #define PSA_ECC_CURVE_SECP_K1 \ |
| 170 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_K1 ) |
| 171 | #define PSA_ECC_CURVE_SECP_R1 \ |
| 172 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R1 ) |
| 173 | #define PSA_ECC_CURVE_SECP_R2 \ |
| 174 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECP_R2 ) |
| 175 | #define PSA_ECC_CURVE_SECT_K1 \ |
| 176 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_K1 ) |
| 177 | #define PSA_ECC_CURVE_SECT_R1 \ |
| 178 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R1 ) |
| 179 | #define PSA_ECC_CURVE_SECT_R2 \ |
| 180 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_SECT_R2 ) |
| 181 | #define PSA_ECC_CURVE_BRAINPOOL_P_R1 \ |
| 182 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_BRAINPOOL_P_R1 ) |
| 183 | #define PSA_ECC_CURVE_MONTGOMERY \ |
| 184 | MBEDTLS_DEPRECATED_CONSTANT( psa_ecc_family_t, PSA_ECC_FAMILY_MONTGOMERY ) |
| 185 | |
| 186 | /* |
| 187 | * Finite-field Diffie-Hellman families. |
| 188 | */ |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 189 | #define PSA_DH_GROUP_FFDHE2048 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 190 | MBEDTLS_DEPRECATED_CONSTANT( psa_dh_family_t, PSA_DH_FAMILY_RFC7919 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 191 | #define PSA_DH_GROUP_FFDHE3072 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 192 | MBEDTLS_DEPRECATED_CONSTANT( psa_dh_family_t, PSA_DH_FAMILY_RFC7919 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 193 | #define PSA_DH_GROUP_FFDHE4096 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 194 | MBEDTLS_DEPRECATED_CONSTANT( psa_dh_family_t, PSA_DH_FAMILY_RFC7919 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 195 | #define PSA_DH_GROUP_FFDHE6144 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 196 | MBEDTLS_DEPRECATED_CONSTANT( psa_dh_family_t, PSA_DH_FAMILY_RFC7919 ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 197 | #define PSA_DH_GROUP_FFDHE8192 \ |
Summer Qin | 0e5b2e0 | 2020-10-22 11:23:39 +0800 | [diff] [blame^] | 198 | MBEDTLS_DEPRECATED_CONSTANT( psa_dh_family_t, PSA_DH_FAMILY_RFC7919 ) |
| 199 | |
| 200 | /* |
| 201 | * Diffie-Hellman families that changed name due to PSA specification. |
| 202 | */ |
| 203 | #define PSA_DH_GROUP_RFC7919 \ |
| 204 | MBEDTLS_DEPRECATED_CONSTANT( psa_dh_family_t, PSA_DH_FAMILY_RFC7919 ) |
| 205 | #define PSA_DH_GROUP_CUSTOM \ |
| 206 | MBEDTLS_DEPRECATED_CONSTANT( psa_dh_family_t, PSA_DH_FAMILY_CUSTOM ) |
Soby Mathew | 07ef6e4 | 2020-07-20 21:09:23 +0100 | [diff] [blame] | 207 | |
Antonio de Angelis | 04debbd | 2019-10-14 12:12:52 +0100 | [diff] [blame] | 208 | #ifdef __cplusplus |
| 209 | } |
| 210 | #endif |
| 211 | |
| 212 | #endif /* PSA_CRYPTO_COMPAT_H */ |