Details
-
Bug
-
Resolution: Fixed
-
P3
-
None
-
b28
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8274828 | 11.0.15-oracle | Prasadarao Koppula | P3 | Resolved | Fixed | b01 |
JDK-8278485 | 11.0.15 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
Description
The following code throws a NPE:
Cipher c = Cipher.getInstance("ChaCha20-Poly1305");
c.getParameters();
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "[B.clone()" because "buffer" is null
at java.base/sun.security.util.DerValue.<init>(DerValue.java:283)
at java.base/com.sun.crypto.provider.ChaCha20Cipher.engineGetParameters(ChaCha20Cipher.java:232)
at java.base/javax.crypto.Cipher.getParameters(Cipher.java:1060)
Cipher c = Cipher.getInstance("ChaCha20-Poly1305");
c.getParameters();
Exception in thread "main" java.lang.NullPointerException: Cannot invoke "[B.clone()" because "buffer" is null
at java.base/sun.security.util.DerValue.<init>(DerValue.java:283)
at java.base/com.sun.crypto.provider.ChaCha20Cipher.engineGetParameters(ChaCha20Cipher.java:232)
at java.base/javax.crypto.Cipher.getParameters(Cipher.java:1060)
Attachments
Issue Links
- backported by
-
JDK-8274828 Cipher.getParameters() throws NPE for ChaCha20-Poly1305
-
- Resolved
-
-
JDK-8278485 Cipher.getParameters() throws NPE for ChaCha20-Poly1305
-
- Resolved
-
- links to
-
Commit openjdk/jdk11u-dev/c3aaef39
-
Commit openjdk/jdk/500ab457
-
Review openjdk/jdk11u-dev/686
-
Review openjdk/jdk/1644
(1 links to)