Found by the wychcheck-jce Wycheproof runner.
Failing test
Root cause
After cipher.init(Cipher.ENCRYPT_MODE, key) for an RSA-OAEP cipher, cipher.getParameters() returns null instead of an AlgorithmParameters instance containing the active OAEPParameterSpec.
Callers that introspect the default parameters (e.g. to log or validate them) receive a NullPointerException when they call params.getParameterSpec(OAEPParameterSpec.class).
The JDK standard notes that for ciphers using parameters (like OAEP), getParameters() should return the current effective parameters.
Priority
Low — affects parameter-introspection code paths not common in normal application code.
Found by the wychcheck-jce Wycheproof runner.
Failing test
RsaOaepTest.testDefaultsRoot cause
After
cipher.init(Cipher.ENCRYPT_MODE, key)for an RSA-OAEP cipher,cipher.getParameters()returnsnullinstead of anAlgorithmParametersinstance containing the activeOAEPParameterSpec.Callers that introspect the default parameters (e.g. to log or validate them) receive a
NullPointerExceptionwhen they callparams.getParameterSpec(OAEPParameterSpec.class).The JDK standard notes that for ciphers using parameters (like OAEP),
getParameters()should return the current effective parameters.Priority
Low — affects parameter-introspection code paths not common in normal application code.