Details
-
Bug
-
Resolution: Fixed
-
P3
-
8, 11, 13, 14, 15, 16, 17, 18, 19
-
b13
Backports
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8287546 | 17.0.5-oracle | Luis Pinto | P3 | Resolved | Fixed | b01 |
JDK-8288034 | 17.0.5 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
JDK-8290282 | 15.0.9 | Yuri Nesterenko | P3 | Resolved | Fixed | b01 |
JDK-8290281 | 13.0.13 | Yuri Nesterenko | P3 | Resolved | Fixed | b01 |
JDK-8287545 | 11.0.17-oracle | Luis Pinto | P3 | Resolved | Fixed | b01 |
JDK-8288880 | 11.0.17 | Goetz Lindenmaier | P3 | Resolved | Fixed | b01 |
Description
Please find the attached standalone code -
The sample initializes the KeyAgreement and generates a secret(secret) , and again try to generate a secret(secret1)
The secret and secret1 does not match occasionally.
Note - attached sample repeated for 50 times, to see the failure.
Interestingly the generated secret1 after reset mismatches only the first byte of the secret.
The failure output.
===========
#### generateSecret() doesn't successfully reset KeyAgreement object.[-48, 71, -8, -56, -123, 13, 106, -6, 54, -8, -22, -71, -53, 16, 27, 5, 123, -110, 32, -10, 80, 57, -115, 11, -103, 52, 16, -86, 124, -64, 18, -103, 90, 4, 119, 68, -18, -17, -97, 52, -13, -41, -15, -101, -56, -55, -23, 44, -3, -85, -33, 5, 70, 31, -53, 1, 119, 10, 101, 3, 114, 106, 121, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[0, 71, -8, -56, -123, 13, 106, -6, 54, -8, -22, -71, -53, 16, 27, 5, 123, -110, 32, -10, 80, 57, -115, 11, -103, 52, 16, -86, 124, -64, 18, -103, 90, 4, 119, 68, -18, -17, -97, 52, -13, -41, -15, -101, -56, -55, -23, 44, -3, -85, -33, 5, 70, 31, -53, 1, 119, 10, 101, 3, 114, 106, 121, 79, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
==========
Attachments
Issue Links
- backported by
-
JDK-8287545 KeyAgreement : generateSecret intermittently not resetting
- Resolved
-
JDK-8287546 KeyAgreement : generateSecret intermittently not resetting
- Resolved
-
JDK-8288034 KeyAgreement : generateSecret intermittently not resetting
- Resolved
-
JDK-8288880 KeyAgreement : generateSecret intermittently not resetting
- Resolved
-
JDK-8290281 KeyAgreement : generateSecret intermittently not resetting
- Resolved
-
JDK-8290282 KeyAgreement : generateSecret intermittently not resetting
- Resolved
- links to
-
Commit openjdk/jdk11u-dev/a2ecf87f
-
Commit openjdk/jdk13u-dev/ddec8d75
-
Commit openjdk/jdk15u-dev/0dee7dac
-
Commit openjdk/jdk17u-dev/c2d2dc72
-
Commit openjdk/jdk/1485883c
-
Review openjdk/jdk11u-dev/1145
-
Review openjdk/jdk13u-dev/367
-
Review openjdk/jdk15u-dev/230
-
Review openjdk/jdk17u-dev/437
-
Review openjdk/jdk/7665