RFR: JDK-8311592 ECKeySizeParameterSpec causes too many exceptions on third party providers

2023-07-20 Thread Anthony Scarpino
Hi, This fix eliminates needless exceptions each time the EC key size is obtained through AlgorithmParameters on third party providers. These providers throw an InvalidParameterSpecException as `sun.security.util.KeyUtil.getKey()` sends an internal `sun.security.util.ECKeySizeParameterSpec`.

Re: RFR: 8312443: sun.security should use toLowerCase(Locale.ROOT)

2023-07-20 Thread John Jiang
On Thu, 20 Jul 2023 09:29:50 GMT, John Jiang wrote: > sun.security codes should use `toLowerCase(Locale.ROOT)` instead of > `toLowerCase()`. > In addition, no `toUpperCase()` was found in this code scope. @XueleiFan Thanks for your review! - PR Comment: https://git.openjdk.org/jd

Integrated: 8312443: sun.security should use toLowerCase(Locale.ROOT)

2023-07-20 Thread John Jiang
On Thu, 20 Jul 2023 09:29:50 GMT, John Jiang wrote: > sun.security codes should use `toLowerCase(Locale.ROOT)` instead of > `toLowerCase()`. > In addition, no `toUpperCase()` was found in this code scope. This pull request has now been integrated. Changeset: 4e8f331a Author:John Jiang URL

Re: KDF JEP for the Java Platform

2023-07-20 Thread Bernd
Good to hear that plan,I wonder are there also special considerations for password based algorithms? One of the major annoyances are the different encoding formats (mostly about bytes derived from strings, maybe padding). Would be good if this can be an parameter.In regard

Re: [Internet]Re: Re: Re: JEP Review Request: TLS Certificate Compression

2023-07-20 Thread Xuelei Fan
Hi, This feature had been implemented in OpenSSL [1] and Chrome browser [2] for a while. Maybe, it is time to pick this request up for further discussion and review if there are resources available. What do you think? Best, Xuelei [1]: https://github.com/openssl/openssl/issues/13597 [2]: http

Integrated: 8307185: pkcs11 native libraries make JNI calls into java code while holding GC lock

2023-07-20 Thread Daniel Jeliński
On Wed, 19 Jul 2023 12:03:14 GMT, Daniel Jeliński wrote: > This patch fixes random deadlocks in PKCS11 decryption and encryption code. > > The deadlocks were caused by object allocation in `ckAssertReturnValueOK` > waiting for GC; GC was in turn waiting for `ReleasePrimitiveArrayCritical`, > w

Re: RFR: 8307185: pkcs11 native libraries make JNI calls into java code while holding GC lock [v2]

2023-07-20 Thread Daniel Jeliński
On Wed, 19 Jul 2023 18:03:06 GMT, Daniel Jeliński wrote: >> This patch fixes random deadlocks in PKCS11 decryption and encryption code. >> >> The deadlocks were caused by object allocation in `ckAssertReturnValueOK` >> waiting for GC; GC was in turn waiting for `ReleasePrimitiveArrayCritical`,

Re: RFR: 8312443: sun.security should use toLowerCase(Locale.ROOT)

2023-07-20 Thread Xue-Lei Andrew Fan
On Thu, 20 Jul 2023 09:29:50 GMT, John Jiang wrote: > sun.security codes should use `toLowerCase(Locale.ROOT)` instead of > `toLowerCase()`. > In addition, no `toUpperCase()` was found in this code scope. Looks good to me. - Marked as reviewed by xuelei (Reviewer). PR Review: htt

RFR: 8312443: sun.security should use toLowerCase(Locale.ROOT)

2023-07-20 Thread John Jiang
sun.security codes should use `toLowerCase(Locale.ROOT)` instead of `toLowerCase()`. In addition, no `toUpperCase()` was found in this code scope. - Commit messages: - 8312443: sun.security should use toLowerCase(Locale.ROOT) Changes: https://git.openjdk.org/jdk/pull/14948/files W