Compatbilities with Java OAEPWithSHA-512AndMGF1Padding implementation and Bouncy Castle implementation
Issue
- Converting to use new RSA and OAEPWithSHA-512AndMGF1Padding implementation in Java 17 from BouncyCastle, but encountering
javax.crypto.BadPaddingExceptiontrying to decrypt with Java 17 a ciphertext encrypted with Bouncy Castle
Environment
- Using RSA and OAEPWithSHA-512AndMGF1Padding encryption
- Encrypted ciphertest using Bouncy Castle
- Decrypting with Java implementation
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.