mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-22 18:25:42 +01:00
PSA: Adapt PK test suite to new key policy initialization API
This commit is contained in:
parent
353295ac70
commit
8d865dfe37
@ -88,7 +88,7 @@ psa_key_handle_t pk_psa_genkey( void )
|
|||||||
return( PK_PSA_INVALID_SLOT );
|
return( PK_PSA_INVALID_SLOT );
|
||||||
|
|
||||||
/* set up policy on key slot */
|
/* set up policy on key slot */
|
||||||
psa_key_policy_init( &policy );
|
policy = psa_key_policy_init();
|
||||||
psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_SIGN,
|
psa_key_policy_set_usage( &policy, PSA_KEY_USAGE_SIGN,
|
||||||
PSA_ALG_ECDSA(PSA_ALG_SHA_256) );
|
PSA_ALG_ECDSA(PSA_ALG_SHA_256) );
|
||||||
if( PSA_SUCCESS != psa_set_key_policy( key, &policy ) )
|
if( PSA_SUCCESS != psa_set_key_policy( key, &policy ) )
|
||||||
|
Loading…
Reference in New Issue
Block a user