mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-18 10:23:20 +00:00
Merge pull request #7573 from tom-cosgrove-arm/add-psa_want_alg_some_pake
Only include psa_pake_setup() and friends if some PAKE algorithms are required
This commit is contained in:
commit
9a11f8a122
3
ChangeLog.d/add-psa_want_alg_some_pake.txt
Normal file
3
ChangeLog.d/add-psa_want_alg_some_pake.txt
Normal file
@ -0,0 +1,3 @@
|
||||
Features
|
||||
* Don't include the PSA dispatch functions for PAKEs (psa_pake_setup() etc)
|
||||
if no PAKE algorithms are requested
|
@ -908,6 +908,10 @@ extern "C" {
|
||||
|
||||
#endif /* MBEDTLS_PSA_CRYPTO_CONFIG */
|
||||
|
||||
#if defined(PSA_WANT_ALG_JPAKE)
|
||||
#define PSA_WANT_ALG_SOME_PAKE 1
|
||||
#endif
|
||||
|
||||
/* These features are always enabled. */
|
||||
#define PSA_WANT_KEY_TYPE_DERIVE 1
|
||||
#define PSA_WANT_KEY_TYPE_PASSWORD 1
|
||||
|
@ -7384,6 +7384,7 @@ psa_status_t psa_crypto_driver_pake_get_cipher_suite(
|
||||
return PSA_SUCCESS;
|
||||
}
|
||||
|
||||
#if defined(PSA_WANT_ALG_SOME_PAKE)
|
||||
psa_status_t psa_pake_setup(
|
||||
psa_pake_operation_t *operation,
|
||||
const psa_pake_cipher_suite_t *cipher_suite)
|
||||
@ -8100,5 +8101,6 @@ psa_status_t psa_pake_abort(
|
||||
|
||||
return status;
|
||||
}
|
||||
#endif /* PSA_WANT_ALG_SOME_PAKE */
|
||||
|
||||
#endif /* MBEDTLS_PSA_CRYPTO_C */
|
||||
|
Loading…
Reference in New Issue
Block a user