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_encrypt_wrap using psa_asymmetric_encrypt() instead of mbedtls_rsa_pkcs1_decrypt() when MBEDTLS_USE_PSA_CRYPTO is enabled.
This will require creating a temporary PSA public key with appropriate permissions. An example of this 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).
In
library/pk_wrap.c
, provide an implementation ofrsa_encrypt_wrap
usingpsa_asymmetric_encrypt()
instead ofmbedtls_rsa_pkcs1_decrypt()
whenMBEDTLS_USE_PSA_CRYPTO
is enabled.This will require creating a temporary PSA public key with appropriate permissions. An example of this 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: #5159
The text was updated successfully, but these errors were encountered: