-
Bug
-
Resolution: Fixed
-
P4
-
17, 21, 23
-
b09
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8326554 | 21.0.3 | Martin Balao Alonso | P4 | Resolved | Fixed | b05 |
JDK-8326880 | 17.0.12 | Martin Balao Alonso | P4 | Resolved | Fixed | b01 |
For a token that has a private key with attributes CKA_TOKEN = TRUE, CKA_SENSITIVE = FALSE and CKA_EXTRACTABLE = TRUE,
The NSS Software Token considers private and secret keys with CKA_TOKEN = TRUE as sensitive, regardless of the CKA_SENSITIVE and CKA_EXTRACTABLE attributes. See NSC_GetAttributeValue [1], nsc_GetTokenAttributeValue [2] and sftk_isSensitive [3]. When keys have CKA_TOKEN = FALSE, CKA_SENSITIVE has to be TRUE for a private or secret key to be sensitive. See here [4] and here [5].
Update: the token where the regression was observed uses the ICSF PKCS #11 library.
--
[1] - https://github.com/nss-dev/nss/blob/NSS_3_90_RTM/lib/softoken/pkcs11.c#L4838
[2] - https://github.com/nss-dev/nss/blob/NSS_3_90_RTM/lib/softoken/pkcs11.c#L4789
[3] - https://github.com/nss-dev/nss/blob/NSS_3_90_RTM/lib/softoken/pkcs11u.c#L802
[4] - https://github.com/nss-dev/nss/blob/NSS_3_90_RTM/lib/softoken/pkcs11.c#L4864
[5] - https://github.com/nss-dev/nss/blob/NSS_3_90_RTM/lib/softoken/pkcs11.c#L4867
- backported by
-
JDK-8326554 CKA_TOKEN private and secret keys are not necessarily sensitive
- Resolved
-
JDK-8326880 CKA_TOKEN private and secret keys are not necessarily sensitive
- Resolved
- relates to
-
JDK-8271566 DSA signature length value is not accurate in P11Signature
- Resolved
-
JDK-8326942 [17u] Backout "8325254: CKA_TOKEN private and secret keys are not necessarily sensitive"
- Resolved
- links to
-
Commit openjdk/jdk17u-dev/7bd90620
-
Commit openjdk/jdk17u-dev/d29fe03c
-
Commit openjdk/jdk21u-dev/c80bb728
-
Commit openjdk/jdk/0f5f3c9b
-
Review openjdk/jdk17u-dev/2223
-
Review openjdk/jdk17u-dev/2299
-
Review openjdk/jdk21u-dev/283
-
Review openjdk/jdk/17712