RSA-OAEP Quantum-vulnerable Recorded traffic From a constant 4 places See details
Classical public-key cipher through the JCA
`Cipher.getInstance()` with a transformation whose algorithm component is a public-key or legacy symmetric cipher. The transformation string is parsed into algorithm, mode and padding, so `RSA/ECB/PKCS1Padding` is separated from `RSA/ECB/OAEPWithSHA-256AndMGF1Padding`.
A quantum computer of sufficient size breaks this completely. It has to be replaced, not tuned. Broken by Shor's algorithm on a cryptographically relevant quantum computer.
What to do. For RSA encryption, move to ML-KEM-768 and keep RSA-OAEP only as the classical half of a hybrid during transition.
-
src/main/java/com/mastercard/developer/encryption/rsa/RSA.java:27
Cipher cipher = Cipher.getInstance(asymmetricCipher); -
src/main/java/com/mastercard/developer/encryption/rsa/RSA.java:29
return cipher.wrap(privateKey); -
src/main/java/com/mastercard/developer/encryption/rsa/RSA.java:42
Cipher cipher = Cipher.getInstance(asymmetricCipher); -
src/main/java/com/mastercard/developer/encryption/rsa/RSA.java:44
return cipher.unwrap(keyBytes, SYMMETRIC_KEY_TYPE, Cipher.SECRET_KEY);