Commit Graph

58 Commits

Author SHA1 Message Date
Anthony Scarpino
e737968792 8308398: Move SunEC crypto provider into java.base
Reviewed-by: valeriep, alanb
2023-07-17 17:38:54 +00:00
Ben Perez
3c15ad8d47 8307144: namedParams in XECParameters and EdDSAParameters can be private final
Reviewed-by: jnimeh, xuelei, mullan
2023-06-12 19:45:06 +00:00
Weijun Wang
6b90b0519e 8297878: KEM: Implementation
Reviewed-by: ascarpino, mullan
2023-05-30 16:29:19 +00:00
Weijun Wang
97276859ab 8305310: Calculate PublicKey from PrivateKey
Reviewed-by: mullan
2023-04-10 00:55:16 +00:00
Weijun Wang
b317658d69 8300399: EdDSA does not verify when there is no message
Reviewed-by: ascarpino
2023-01-19 18:32:08 +00:00
Xue-Lei Andrew Fan
b778cd52b3 8295010: Reduce if required in EC limbs operations
Reviewed-by: djelinski, jjiang
2022-11-29 17:39:40 +00:00
Weijun Wang
2deb318c9f 8297065: DerOutputStream operations should not throw IOExceptions
Reviewed-by: mullan, valeriep
2022-11-29 12:57:46 +00:00
Xue-Lei Andrew Fan
260e4dcbfd 8295011: EC point multiplication improvement for secp256r1
Reviewed-by: djelinski, jjiang
2022-11-22 18:19:59 +00:00
Weijun Wang
1ae6836521 8288508: Enhance ECDSA usage
Reviewed-by: ascarpino, ahgross, rhalade
2022-10-18 22:41:15 +00:00
Daniel Jeliński
2f60675e06 8294997: Improve ECC math operations
Reviewed-by: xuelei
2022-10-13 10:16:33 +00:00
raspberry-hu
8e2c006cd1 8291957: Redundant import statements in sun.security.ec
Reviewed-by: xuelei
2022-08-08 02:49:44 +00:00
longxu0509
2ae8e31183 8290669: Fix wording in sun.security.ec
Reviewed-by: mullan
2022-07-26 15:04:49 +00:00
Hollow Man
af86cd3d8c 8290463: Fix several comment typos in sun.security.ec
Reviewed-by: xuelei
2022-07-19 01:49:20 +00:00
Ryan Ernst
e93be3acdf 8286389: Address possibly lossy conversions in jdk.crypto.ec
Reviewed-by: chegar, xuelei
2022-06-25 07:55:55 +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
Weijun Wang
8040aa0073 8286908: ECDSA signature should not return parameters
Reviewed-by: ascarpino, hchao, valeriep
2022-05-23 13:34:23 +00:00
Magnus Ihse Bursie
f631c9884f 8285380: Fix typos in security
Reviewed-by: weijun, wetmore
2022-05-13 15:04:12 +00:00
Weijun Wang
397d095f66 8285743: Ensure each IntegerPolynomial object is only created once
Reviewed-by: xuelei, ascarpino
2022-05-09 17:18:34 +00:00
Weijun Wang
c1173c24bf 8285493: ECC calculation error
Reviewed-by: xuelei, ascarpino
2022-04-28 02:52:41 +00:00
Anthony Scarpino
414918d911 8285389: EdDSA trimming zeros
Reviewed-by: xuelei
2022-04-25 15:31:49 +00:00
Weijun Wang
e2f8ce9c3f 8277233: Improve ECDSA signature support
Reviewed-by: ascarpino, ahgross, rhalade
2022-04-19 22:18:32 +00:00
Andrey Turbanov
8e58d4a589 8284415: Collapse identical catch branches in security libs
Reviewed-by: coffeys, xuelei, wetmore
2022-04-07 10:00:08 +00:00
Weijun Wang
0a839b434b 8279801: EC KeyFactory and KeyPairGenerator do not have aliases for OID format
Reviewed-by: xuelei, valeriep
2022-01-13 15:26:41 +00:00
John Jiang
4851948059 8279903: Redundant modulo operation in ECDHKeyAgreement
Reviewed-by: weijun, xuelei
2022-01-13 02:16:50 +00:00
Joe Darcy
7326481143 8274393: Suppress more warnings on non-serializable non-transient instance fields in security libs
Reviewed-by: weijun
2021-09-30 17:39:05 +00:00
Jamil Nimeh
29e0f1386d 8272385: Enforce ECPrivateKey d value to be in the range [1, n-1] for SunEC provider
Reviewed-by: ascarpino, weijun
2021-09-02 17:54:08 +00:00
Weijun Wang
6765f90250 8266459: Implement JEP 411: Deprecate the Security Manager for Removal
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: erikj, darcy, chegar, naoto, joehw, alanb, mchung, kcr, prr, lancea
2021-06-02 11:57:31 +00:00
Weijun Wang
f834557ae0 8258915: Temporary buffer cleanup
Reviewed-by: valeriep
2021-04-22 18:11:43 +00:00
Alex Blewitt
ebbce91e79 8264681: Use the blessed modifier order in java.security
Reviewed-by: mullan, shade
2021-04-14 06:01:00 +00:00
Xue-Lei Andrew Fan
177bc84fe8 8264606: More comment for ECDH public key validation
Reviewed-by: wetmore
2021-04-02 15:23:23 +00:00
Anthony Scarpino
374272fd13 8261502: ECDHKeyAgreement: Allows alternate ECPrivateKey impl and revised exception handling
Reviewed-by: jnimeh
2021-03-25 19:18:44 +00:00
Ziyi Luo
a777e82cd8 8254717: isAssignableFrom checks in KeyFactorySpi.engineGetKeySpec appear to be backwards
Reviewed-by: jnimeh
2021-03-04 15:17:53 +00:00
Anthony Scarpino
fb206908b4 8253637: Update EC removal
Reviewed-by: mullan
2020-09-29 18:05:20 +00:00
Anthony Scarpino
0b83fc0150 8235710: Remove the legacy elliptic curves
Reviewed-by: xuelei, erikj
2020-09-25 02:40:36 +00:00
Valerie Peng
40206822f4 8172366: Support SHA-3 based signatures
Enhance default JDK providers including SUN, SunRsaSign, and SunEC, with signatures using SHA-3 family of digests.

Reviewed-by: xuelei
2020-09-15 20:28:48 +00:00
Weijun Wang
507816d550 8244565: Accept PKCS #8 with version number 1
Reviewed-by: valeriep
2020-06-05 07:53:50 +08:00
Weijun Wang
bcbe46b0b3 8246397: Use KnownOIDs for known OIDs
Reviewed-by: xuelei
2020-06-04 10:04:32 +08:00
Valerie Peng
080b3b83eb 8242151: Improve OID mapping and reuse among JDK security providers for aliases registration
Use sun.security.util.KnownOIDs enum instead of hardcoding oid strings everywhere

Reviewed-by: weijun
2020-05-19 04:05:03 +00:00
Anthony Scarpino
fd28aad72d 8166597: Crypto support for the EdDSA Signature Algorithm
Reviewed-by: weijun, mullan, wetmore
2020-05-18 09:42:52 -07:00
Anthony Scarpino
b0245c2b54 8237219: Disable native SunEC implementation by default
Reviewed-by: weijun, mullan
2020-03-25 12:41:14 -07:00
Weijun Wang
533649b8ca 8237218: Support NIST Curves verification in java implementation
Reviewed-by: ascarpino
2020-02-22 08:10:21 +08:00
Xue-Lei Andrew Fan
4e430ffbb6 8239264: Clearup the legacy ObjectIdentifier constructor from int array
Reviewed-by: jnimeh
2020-02-17 18:52:50 -08:00
Weijun Wang
010ac54044 8236070: Backout fix for JDK-8234465
Reviewed-by: mullan
2019-12-17 20:56:53 +08:00
Weijun Wang
31b07b21ae 8234465: Encoded elliptic curve private keys should include the public point
Reviewed-by: xuelei
2019-12-17 09:38:30 +08:00
Valerie Peng
175faeeadf 8225745: NoSuchAlgorithmException exception for SHA256withECDSA with RSASSA-PSS support
Fixed SignatureUtil and ECDSA signature impl to handle EC parameters

Reviewed-by: weijun
2019-07-11 20:11:47 +00:00
Bradford Wetmore
118fd65d44 8171279: Support X25519 and X448 in TLS
Reviewed-by: xuelei, mullan
2019-06-12 18:58:00 -07:00
Adam Petcher
95b189916f 8147502: Digest is incorrectly truncated for ECDSA signatures when the bit length of n is less than the field size
Truncate the digest according to the group order, not the field size

Reviewed-by: jnimeh
2019-03-19 15:18:35 -04:00
Ivan Gerasimov
db89805fe0 8217344: Make comparison overflow-aware in ECDHKeyAgreement.engineGenerateSecret()
Reviewed-by: apetcher
2019-01-18 15:44:17 -08:00
Weijun Wang
a438a0766c 8213010: Supporting keys created with certmgr.exe
Reviewed-by: valeriep
2018-12-13 17:28:30 +08:00
Adam Petcher
3c12c4b0f3 8208698: Improved ECC Implementation
New implementation of ECDH and ECDSA forsome prime-order curves

Reviewed-by: ascarpino
2018-12-11 09:42:45 -05:00