Commit Graph

119 Commits

Author SHA1 Message Date
Daniel Jeliński
68206b533b 8324585: JVM native memory leak in PCKS11-NSS security provider
Reviewed-by: valeriep
2024-02-01 08:37:24 +00:00
Weijun Wang
9123961aaa 8318096: Introduce AsymmetricKey interface with a getParams method
Reviewed-by: darcy, mullan, ascarpino
2023-10-26 22:43:06 +00:00
Bradford Wetmore
adca97b659 8286503: Enhance security classes
Reviewed-by: rhalade, mullan, skoivu, weijun
2023-10-17 22:45:06 +00:00
Valerie Peng
ba6cdbe2c2 8309214: sun/security/pkcs11/KeyStore/CertChainRemoval.java fails after 8301154
Reviewed-by: mbaesken, jnimeh
2023-08-22 23:49:03 +00:00
Pavel Rappo
19ae62ae2c 8311170: Simplify and modernize equals and hashCode in security area
Reviewed-by: djelinski, rriggs, valeriep
2023-08-09 12:34:40 +00:00
Valerie Peng
c27c87786a 8302017: Allocate BadPaddingException only if it will be thrown
Reviewed-by: xuelei
2023-07-27 21:24:03 +00:00
Daniel Jeliński
354c6605e3 8307185: pkcs11 native libraries make JNI calls into java code while holding GC lock
Reviewed-by: alanb, valeriep
2023-07-20 16:39:17 +00:00
Anthony Scarpino
e737968792 8308398: Move SunEC crypto provider into java.base
Reviewed-by: valeriep, alanb
2023-07-17 17:38:54 +00:00
Martin Balao
760cb04a2e 8309569: sun/security/pkcs11/Signature/TestRSAKeyLength.java fails after JDK-8301553
Co-authored-by: Martin Balao <mbalao@openjdk.org>
Co-authored-by: Francisco Ferrari Bihurriet <fferrari@redhat.com>
Reviewed-by: valeriep
2023-06-08 01:24:26 +00:00
Martin Balao
4a75fd462c 8301553: Support Password-Based Cryptography in SunPKCS11
Co-authored-by: Francisco Ferrari Bihurriet <fferrari@redhat.com>
Co-authored-by: Martin Balao <mbalao@openjdk.org>
Reviewed-by: valeriep
2023-06-06 19:39:34 +00:00
Valerie Peng
6b27dad76e 8301154: SunPKCS11 KeyStore deleteEntry results in dangling PrivateKey entries
Reviewed-by: weijun, hchao
2023-05-23 21:11:38 +00:00
Valerie Peng
46e3d24a6f 8155191: Specify that SecureRandom.nextBytes(byte[]) throws NullPointerException when byte array is null
Reviewed-by: mullan
2023-05-12 23:00:00 +00:00
Jiangli Zhou
fed262a9cf 8306949: Resolve miscellaneous multiple symbol definition issues when statically linking JDK/VM natives with standard launcher
Reviewed-by: alanb
2023-04-27 15:57:51 +00:00
Jiangli Zhou
9bc6a212f7 8306033: Resolve multiple definition of 'throwIOException' and friends when statically linking with JDK native libraries
Reviewed-by: alanb
2023-04-26 16:04:48 +00:00
Valerie Peng
e575924131 8305336: java.security.debug=sunpkcs11 breaks PKCS#11 configuration with slotListIndex
Reviewed-by: mpowers, weijun
2023-04-17 04:47:40 +00:00
Jiangli Zhou
ce4b995556 8305761: Resolve multiple definition of 'jvm' when statically linking with JDK native libraries
Reviewed-by: alanb, kevinw
2023-04-11 15:05:44 +00:00
Valerie Peng
394eac850c 8295425: Match the default priv exp length between SunPKCS11 and other JDK providers
Reviewed-by: weijun
2023-03-01 22:40:50 +00:00
Per Minborg
c3bc4fcb3d 8297505: Declare fields in some sun.security.pkcs11 classes as final
Reviewed-by: valeriep
2022-12-12 21:51:59 +00:00
Per Minborg
84b927a05b 8296024: Usage of DirectBuffer::address should be guarded
Reviewed-by: mcimadamore, alanb, psandoz, bpb
2022-12-06 10:42:59 +00:00
Per Minborg
e9d501e442 8297519: Improve expressions and modernise code in PKCS
Reviewed-by: weijun
2022-11-30 20:19:52 +00:00
Per Minborg
f05bfb1578 8297515: serialVersionUID fields are not annotated with @Serial
Reviewed-by: rriggs, lancea
2022-11-30 07:43:17 +00:00
Weijun Wang
2deb318c9f 8297065: DerOutputStream operations should not throw IOExceptions
Reviewed-by: mullan, valeriep
2022-11-29 12:57:46 +00:00
Matthias Baesken
8836b92593 8296226: Add constructors (String,Throwable) and (Throwable) to InvalidParameterException
Reviewed-by: mullan, mdoerr
2022-11-07 07:50:12 +00:00
Matthias Baesken
d5d34241e2 8295405: Add cause in a couple of IllegalArgumentException and InvalidParameterException shown by sun/security/pkcs11 tests
Reviewed-by: mdoerr, mullan
2022-10-28 07:04:27 +00:00
Mark Powers
8e5d680a98 8293093: NPE in P11KeyStore.getID
Reviewed-by: ascarpino, xuelei
2022-10-26 15:53:52 +00:00
Daniel Jeliński
94caecbe57 8294906: Memory leak in PKCS11 NSS TLS server
Reviewed-by: valeriep
2022-10-13 09:29:17 +00:00
Zdenek Zambersky
2057070eb0 8293815: P11PSSSignature.engineUpdate should not print debug messages during normal operation
Reviewed-by: valeriep
2022-09-15 01:06:08 +00:00
Zdenek Zambersky
1e031e6a58 8293232: Fix race condition in pkcs11 SessionManager
Reviewed-by: valeriep
2022-09-07 20:50:41 +00:00
Matthias Baesken
07f0612c9a 8290532: Adjust PKCS11Exception and handle more PKCS11 error codes
Reviewed-by: valeriep
2022-07-28 07:30:51 +00:00
Julian Waters
0dda3c14eb 8289275: Remove incorrect __declspec(dllimport) attributes from pointers in jdk.crypto.cryptoki
Reviewed-by: valeriep
2022-07-21 19:11:40 +00:00
Daniel Jeliński
04c47da118 8289768: Clean up unused code
Reviewed-by: dfuchs, lancea, weijun, naoto, cjplummer, alanb, michaelm, chegar
2022-07-12 11:30:17 +00:00
Andrey Turbanov
87aa3ce03e 8289274: Cleanup unnecessary null comparison before instanceof check in security modules
Reviewed-by: mullan
2022-07-09 17:59:43 +00:00
Zdenek Zambersky
3e60e82814 8289301: P11Cipher should not throw out of bounds exception during padding
Reviewed-by: valeriep
2022-07-07 18:18:04 +00:00
Zdenek Zambersky
b6bd190d8d 8288985: P11TlsKeyMaterialGenerator should work with ChaCha20-Poly1305
Reviewed-by: valeriep
2022-06-29 17:20:03 +00:00
Hai-May Chao
ca78f7bd76 8286259: Password cleanup after KeyStore.PasswordProtection in P11KeyStore
Reviewed-by: valeriep
2022-06-27 23:15:13 +00:00
Alexey Ivanov
e0d361cea9 8284191: Replace usages of 'a the' in hotspot and java.base
Reviewed-by: lancea, wetmore, naoto, iris, kevinw, xuelei
2022-05-24 11:25:13 +00:00
Magnus Ihse Bursie
f631c9884f 8285380: Fix typos in security
Reviewed-by: weijun, wetmore
2022-05-13 15:04:12 +00:00
Xue-Lei Andrew Fan
0f81d8fcc3 8284933: Improve debug in jdk.crypto.cryptoki
Reviewed-by: valeriep
2022-04-20 04:36:12 +00:00
Xue-Lei Andrew Fan
60446746d4 8284855: Update needed to Cleaners added to jdk.crypto.cryptoki
Reviewed-by: valeriep
2022-04-19 21:53:08 +00:00
Sean Mullan
dc6ec2a467 8284105: Update security libraries to use sealed classes
Reviewed-by: darcy, weijun, xuelei
2022-04-11 18:01:47 +00:00
Xue-Lei Andrew Fan
77388eaf25 8284368: Remove finalizer method in jdk.crypto.cryptoki
Reviewed-by: valeriep
2022-04-06 17:07:35 +00:00
Christoph Langer
cdef087aae 8283727: P11KeyGenerator has import statement with two semicolons after JDK-8267319
Reviewed-by: mullan
2022-03-28 09:49:05 +00:00
Valerie Peng
313bc7f64f 8267319: Use larger default key sizes and algorithms based on CNSA
Reviewed-by: weijun, xuelei
2022-03-24 22:50:26 +00:00
Valerie Peng
d7f31d0d53 8282077: PKCS11 provider C_sign() impl should handle CKR_BUFFER_TOO_SMALL error
Reviewed-by: mikael
2022-02-19 06:40:30 +00:00
Valerie Peng
d64820dfef 8209398: sun/security/pkcs11/KeyStore/SecretKeysBasic.sh failed with "PKCS11Exception: CKR_ATTRIBUTE_SENSITIVE"
Reviewed-by: hchao, weijun
2021-12-22 19:50:51 +00:00
Valerie Peng
83e6a4c0e9 8255409: Support the new C_GetInterfaceList, C_GetInterface, and C_SessionCancel APIs in PKCS#11 v3.0
Reviewed-by: ascarpino, weijun
2021-12-08 23:04:15 +00:00
Brent Christian
ec7cb6d5d3 8276447: Deprecate finalization-related methods for removal
Reviewed-by: rriggs, alanb, lancea, darcy, mchung, serb, smarks, prr
2021-12-08 00:23:15 +00:00
Martin Balao
ea8d3c92c6 8271566: DSA signature length value is not accurate in P11Signature
Reviewed-by: valeriep
2021-12-06 20:31:55 +00:00
Valerie Peng
669c90e23b 8278099: two sun/security/pkcs11/Signature tests failed with AssertionError
Reviewed-by: dcubed
2021-12-02 19:28:42 +00:00
Magnus Ihse Bursie
c393ee8f59 8276632: Use blessed modifier order in security-libs code
Reviewed-by: mullan
2021-11-05 14:09:58 +00:00