Support MGF1 digest SHA-256 when decrypt a JWE
Issue #311
invalid
Support digest SHA-256 to decrypt a JWE using a PrivateKey stored on the KeyStore to prevent exception
JOSEException: Unsupported MGF1 digest: SHA-256. Only SHA-1 supported
Comments (5)
-
-
reporter JWEAlgorithm.RSA_OAEP_256
EncryptionMethod.A256CBC_HS512
-
It appears that the KeyStore you mention doesn’t support MGF1 digest with SHA-256.
If you’re doing a RSA encryption in a HSM or similar module, all crypto ops required by
RSA_OAEP_256
need to be supported there. If not, you get the above error message. -
- changed status to invalid
Issue with alg support in KeyStore
-
Issue
#310was marked as a duplicate of this issue. - Log in to comment
Which JWE “alg” and “enc” are you referring to?