Allow RSA PK Opaque keys for RSA-PSS signing
Signed-off-by: Neil Armstrong <narmstrong@baylibre.com>
This commit is contained in:
parent
cb87403560
commit
7624a5ae5e
1 changed files with 2 additions and 0 deletions
|
@ -776,6 +776,8 @@ int mbedtls_pk_wrap_as_opaque( mbedtls_pk_context *pk,
|
||||||
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_SIGN_HASH );
|
psa_set_key_usage_flags( &attributes, PSA_KEY_USAGE_SIGN_HASH );
|
||||||
psa_set_key_algorithm( &attributes,
|
psa_set_key_algorithm( &attributes,
|
||||||
PSA_ALG_RSA_PKCS1V15_SIGN( hash_alg ) );
|
PSA_ALG_RSA_PKCS1V15_SIGN( hash_alg ) );
|
||||||
|
psa_set_key_enrollment_algorithm( &attributes,
|
||||||
|
PSA_ALG_RSA_PSS( hash_alg ) );
|
||||||
|
|
||||||
/* import private key into PSA */
|
/* import private key into PSA */
|
||||||
status = psa_import_key( &attributes,
|
status = psa_import_key( &attributes,
|
||||||
|
|
Loading…
Reference in a new issue