Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
8263404: RsaPrivateKeySpec is always recognized as RSAPrivateCrtKeySp…
…ec in RSAKeyFactory.engineGetKeySpec Co-authored-by: Greg Rubin <rubin@amazon.com> Reviewed-by: valeriep
- Loading branch information
1 parent
128c0c9
commit a5d7de2
Showing
6 changed files
with
287 additions
and
58 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
|
||
# Configuration to run unit tests with NSS | ||
# Marks private and secret keys as sensitive | ||
|
||
name = NSS | ||
|
||
slot = 1 | ||
|
||
#showInfo = true | ||
|
||
library = ${pkcs11test.nss.lib} | ||
|
||
nssArgs = "configdir='${pkcs11test.nss.db}' certPrefix='' keyPrefix='' secmod='secmod.db' flags=readOnly" | ||
|
||
disabledMechanisms = { | ||
CKM_DSA_SHA224 | ||
CKM_DSA_SHA256 | ||
CKM_DSA_SHA384 | ||
CKM_DSA_SHA512 | ||
CKM_DSA_SHA3_224 | ||
CKM_DSA_SHA3_256 | ||
CKM_DSA_SHA3_384 | ||
CKM_DSA_SHA3_512 | ||
CKM_ECDSA_SHA224 | ||
CKM_ECDSA_SHA256 | ||
CKM_ECDSA_SHA384 | ||
CKM_ECDSA_SHA512 | ||
CKM_ECDSA_SHA3_224 | ||
CKM_ECDSA_SHA3_256 | ||
CKM_ECDSA_SHA3_384 | ||
CKM_ECDSA_SHA3_512 | ||
} | ||
|
||
attributes = compatibility | ||
|
||
# NSS needs CKA_NETSCAPE_DB for DSA and DH private keys | ||
# just put an arbitrary value in there to make it happy | ||
|
||
attributes(*,CKO_PRIVATE_KEY,CKK_DSA) = { | ||
CKA_NETSCAPE_DB = 0h00 | ||
} | ||
|
||
attributes(*,CKO_PRIVATE_KEY,CKK_DH) = { | ||
CKA_NETSCAPE_DB = 0h00 | ||
} | ||
|
||
# Everything above this line (with the exception of the comment at the top) is copy/pasted from p11-nss.txt | ||
|
||
# Make all private keys sensitive | ||
attributes(*,CKO_PRIVATE_KEY,*) = { | ||
CKA_SENSITIVE = true | ||
} | ||
|
||
|
||
# Make all secret keys sensitive | ||
attributes(*,CKO_SECRET_KEY,*) = { | ||
CKA_SENSITIVE = true | ||
} |
Oops, something went wrong.
a5d7de2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Review
Issues