mirror of
https://github.com/yuzu-mirror/mbedtls.git
synced 2026-04-09 16:35:16 +00:00
Merge pull request #7903 from valeriosetti/issue7773
Define PSA_WANT_xxx_KEY_PAIR_yyy step 2/DH
This commit is contained in:
commit
267bee9be8
10 changed files with 115 additions and 93 deletions
|
|
@ -2363,7 +2363,12 @@ component_test_psa_crypto_config_accel_ffdh () {
|
|||
msg "build: MBEDTLS_PSA_CRYPTO_CONFIG with accelerated FFDH"
|
||||
|
||||
# Algorithms and key types to accelerate
|
||||
loc_accel_list="ALG_FFDH KEY_TYPE_DH_KEY_PAIR KEY_TYPE_DH_PUBLIC_KEY"
|
||||
loc_accel_list="ALG_FFDH \
|
||||
KEY_TYPE_DH_KEY_PAIR_BASIC \
|
||||
KEY_TYPE_DH_KEY_PAIR_IMPORT \
|
||||
KEY_TYPE_DH_KEY_PAIR_EXPORT \
|
||||
KEY_TYPE_DH_KEY_PAIR_GENERATE \
|
||||
KEY_TYPE_DH_PUBLIC_KEY"
|
||||
|
||||
# Configure
|
||||
# ---------
|
||||
|
|
|
|||
|
|
@ -121,14 +121,7 @@ def tweak_key_pair_dependency(dep: str, usage: str):
|
|||
symbols according to the required usage.
|
||||
"""
|
||||
ret_list = list()
|
||||
# Note: this LEGACY replacement DH is temporary and it's going
|
||||
# to be aligned with ECC one in #7773.
|
||||
if dep.endswith('DH_KEY_PAIR'):
|
||||
legacy = dep
|
||||
legacy = re.sub(r'KEY_PAIR\Z', r'KEY_PAIR_LEGACY', legacy)
|
||||
legacy = re.sub(r'PSA_WANT', r'MBEDTLS_PSA_WANT', legacy)
|
||||
ret_list.append(legacy)
|
||||
elif dep.endswith('KEY_PAIR'):
|
||||
if dep.endswith('KEY_PAIR'):
|
||||
if usage == "BASIC":
|
||||
# BASIC automatically includes IMPORT and EXPORT for test purposes (see
|
||||
# config_psa.h).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue