You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In library/pk_wrap.c, provide an implementation of rsa_decrypt_wrap using psa_asymmetric_decrypt() instead of mbedtls_rsa_pkcs1_decrypt() when MBEDTLS_USE_PSA_CRYPTO is enabled.
This will require creating a temporary PSA private key with appropriate permissions. An example of something similar, but with a public key, can be found in ecdsa_verify_wrap() in the same file (note: there are two definitions of ecdsa_very_wrap(), we want to look at the one used with MBEDTLS_USE_PSA_CRYPTO).
Note: this function only handles RSA PKCS#1 v1.5, so no need to worry about OAEP here (which is actually not supported in PK so far).
Similar: #5162 and #5274 are also creating a temporary PSA private key.
The text was updated successfully, but these errors were encountered:
In
library/pk_wrap.c
, provide an implementation ofrsa_decrypt_wrap
usingpsa_asymmetric_decrypt()
instead ofmbedtls_rsa_pkcs1_decrypt()
whenMBEDTLS_USE_PSA_CRYPTO
is enabled.This will require creating a temporary PSA private key with appropriate permissions. An example of something similar, but with a public key, can be found in
ecdsa_verify_wrap()
in the same file (note: there are two definitions ofecdsa_very_wrap()
, we want to look at the one used withMBEDTLS_USE_PSA_CRYPTO
).Note: this function only handles RSA PKCS#1 v1.5, so no need to worry about OAEP here (which is actually not supported in PK so far).
Similar: #5162 and #5274 are also creating a temporary PSA private key.
The text was updated successfully, but these errors were encountered: