File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -306,7 +306,7 @@ static int rsa_decrypt_wrap(mbedtls_pk_context *pk,
306
306
psa_set_key_type (& attributes , PSA_KEY_TYPE_RSA_KEY_PAIR );
307
307
psa_set_key_usage_flags (& attributes , PSA_KEY_USAGE_DECRYPT );
308
308
if (mbedtls_rsa_get_padding_mode (rsa ) == MBEDTLS_RSA_PKCS_V21 ) {
309
- psa_md_alg = mbedtls_md_psa_alg_from_type (mbedtls_rsa_get_md_alg (rsa ));
309
+ psa_md_alg = mbedtls_md_psa_alg_from_type (( mbedtls_md_type_t ) mbedtls_rsa_get_md_alg (rsa ));
310
310
decrypt_alg = PSA_ALG_RSA_OAEP (psa_md_alg );
311
311
} else {
312
312
decrypt_alg = PSA_ALG_RSA_PKCS1V15_CRYPT ;
@@ -388,7 +388,7 @@ static int rsa_encrypt_wrap(mbedtls_pk_context *pk,
388
388
389
389
psa_set_key_usage_flags (& attributes , PSA_KEY_USAGE_ENCRYPT );
390
390
if (mbedtls_rsa_get_padding_mode (rsa ) == MBEDTLS_RSA_PKCS_V21 ) {
391
- psa_md_alg = mbedtls_md_psa_alg_from_type (mbedtls_rsa_get_md_alg (rsa ));
391
+ psa_md_alg = mbedtls_md_psa_alg_from_type (( mbedtls_md_type_t ) mbedtls_rsa_get_md_alg (rsa ));
392
392
psa_set_key_algorithm (& attributes , PSA_ALG_RSA_OAEP (psa_md_alg ));
393
393
} else {
394
394
psa_set_key_algorithm (& attributes , PSA_ALG_RSA_PKCS1V15_CRYPT );
You can’t perform that action at this time.
0 commit comments