mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-03-27 23:37:08 +00:00
Add guards for buildin pake set_password function
Signed-off-by: Przemek Stekiel <przemyslaw.stekiel@mobica.com>
This commit is contained in:
parent
7658a0768b
commit
4f0035be29
@ -2887,9 +2887,12 @@ psa_status_t psa_driver_wrapper_pake_set_password_key(
|
|||||||
return( status );
|
return( status );
|
||||||
#endif /* PSA_CRYPTO_DRIVER_TEST */
|
#endif /* PSA_CRYPTO_DRIVER_TEST */
|
||||||
#endif /* PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT */
|
#endif /* PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT */
|
||||||
|
#if defined(MBEDTLS_PSA_BUILTIN_PAKE)
|
||||||
return( mbedtls_psa_pake_set_password_key(
|
return( mbedtls_psa_pake_set_password_key(
|
||||||
attributes, &operation->ctx.mbedtls_ctx,
|
attributes, &operation->ctx.mbedtls_ctx,
|
||||||
key_buffer, key_size ) );
|
key_buffer, key_size ) );
|
||||||
|
#endif
|
||||||
|
return( PSA_ERROR_NOT_SUPPORTED );
|
||||||
/* Add cases for opaque driver here */
|
/* Add cases for opaque driver here */
|
||||||
#if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT)
|
#if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT)
|
||||||
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
||||||
@ -2903,6 +2906,7 @@ psa_status_t psa_driver_wrapper_pake_set_password_key(
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
/* Key is declared with a lifetime not known to us */
|
/* Key is declared with a lifetime not known to us */
|
||||||
|
(void)operation;
|
||||||
(void)status;
|
(void)status;
|
||||||
(void)key_buffer;
|
(void)key_buffer;
|
||||||
(void)key_size;
|
(void)key_size;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user