mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-30 22:43:08 +03:00
Fix #ifdef guard in driver wrapper template
The #ifdef guard in the get_builtin_key() should be PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT to allow for multiple drivers to be plugged into the wrapper. Signed-off-by: Antonio de Angelis <antonio.deangelis@arm.com>
This commit is contained in:
committed by
Minos Galanakis
parent
5a9020f5d4
commit
700632eca2
@ -206,11 +206,11 @@ key_buffer_length
|
|||||||
psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) );
|
psa_key_location_t location = PSA_KEY_LIFETIME_GET_LOCATION( psa_get_key_lifetime(attributes) );
|
||||||
switch( location )
|
switch( location )
|
||||||
{
|
{
|
||||||
#if defined(PSA_CRYPTO_DRIVER_TEST)
|
#if defined(PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT)
|
||||||
{% with nest_indent=8 %}
|
{% with nest_indent=8 %}
|
||||||
{% include "OS-template-opaque.jinja" -%}
|
{% include "OS-template-opaque.jinja" -%}
|
||||||
{% endwith -%}
|
{% endwith -%}
|
||||||
#endif /* PSA_CRYPTO_DRIVER_TEST */
|
#endif /* PSA_CRYPTO_ACCELERATOR_DRIVER_PRESENT */
|
||||||
default:
|
default:
|
||||||
(void) slot_number;
|
(void) slot_number;
|
||||||
(void) key_buffer;
|
(void) key_buffer;
|
||||||
|
Reference in New Issue
Block a user