Re: RFR: 8353888: Implement JEP 510: Key Derivation Function API [v7]

2025-05-15 Thread Valerie Peng
On Fri, 9 May 2025 20:05:10 GMT, Weijun Wang wrote: >> Finalize the KDF API. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > new algorithms in SunJCE Updates look good. Thanks~ - Marked as reviewed by valeriep

Re: RFR: 8353888: Implement JEP 510: Key Derivation Function API [v6]

2025-05-05 Thread Valerie Peng
On Fri, 2 May 2025 18:49:34 GMT, Weijun Wang wrote: >> Finalize the KDF API. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > fine tuning debug log and exception message Looks good. - Marked as reviewed by vale

Re: RFR: 8353888: Implement JEP 510: Key Derivation Function API [v6]

2025-05-05 Thread Valerie Peng
On Fri, 2 May 2025 18:49:34 GMT, Weijun Wang wrote: >> Finalize the KDF API. > > Weijun Wang has updated the pull request incrementally with one additional > commit since the last revision: > > fine tuning debug log and exception message test/jdk/com/sun/crypto/provider/KDF/HKDFSaltIKMTest.j

Re: RFR: 8340493: Fix some Asserts failure messages [v4]

2024-12-19 Thread Valerie Peng
On Thu, 19 Dec 2024 12:33:40 GMT, Weijun Wang wrote: >> `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which >> sounds redundant, just say "expected not equals but was 12345". >> >> `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". >> Modify it to f

Re: RFR: 8340493: Fix some Asserts failure messages [v3]

2024-12-19 Thread Valerie Peng
On Thu, 19 Dec 2024 12:26:12 GMT, Weijun Wang wrote: >> test/lib/jdk/test/lib/Asserts.java line 448: >> >>> 446: if ((unexpected == actual) || (unexpected != null && >>> unexpected.equals(actual))) { >>> 447: msg = Objects.toString(msg, "assertNotEquals") >>> 448:

Re: RFR: 8340493: Fix some Asserts failure messages [v3]

2024-12-18 Thread Valerie Peng
On Wed, 18 Dec 2024 14:00:53 GMT, Weijun Wang wrote: >> `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which >> sounds redundant, just say "expected not equals but was 12345". >> >> `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". >> Modify it to f

Re: RFR: 8340493: Fix some Asserts failure messages [v3]

2024-12-18 Thread Valerie Peng
On Wed, 18 Dec 2024 14:00:53 GMT, Weijun Wang wrote: >> `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which >> sounds redundant, just say "expected not equals but was 12345". >> >> `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". >> Modify it to f

Re: RFR: 8340493: Fix some Asserts failure messages [v2]

2024-12-18 Thread Valerie Peng
On Wed, 18 Dec 2024 13:56:14 GMT, Weijun Wang wrote: >> Also, it's not about "the same byte array", but more like "the same bytes" >> or have equal values, right? This applies to other methods as well. > > Correct, I'll fix. > > As for its usages (in `ML_KEM_Test.java` etc), I'll be happy to fi

Re: RFR: 8340493: Fix some Asserts failure messages [v2]

2024-12-17 Thread Valerie Peng
On Wed, 18 Dec 2024 02:16:55 GMT, Valerie Peng wrote: >> Weijun Wang has updated the pull request with a new target base due to a >> merge or a rebase. The incremental webrev excludes the unrelated changes >> brought in by the merge/rebase. The pull request contain

Re: RFR: 8340493: Fix some Asserts failure messages [v2]

2024-12-17 Thread Valerie Peng
On Tue, 17 Dec 2024 15:07:26 GMT, Weijun Wang wrote: >> `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which >> sounds redundant, just say "expected not equals but was 12345". >> >> `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". >> Modify it to f

Re: RFR: 8340493: Fix some Asserts failure messages

2024-12-16 Thread Valerie Peng
On Fri, 20 Sep 2024 00:33:39 GMT, Weijun Wang wrote: > `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which > sounds redundant, just say "expected not equals but was 12345". > > `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". > Modify it to follow

Re: RFR: 8340493: Fix some Asserts failure messages

2024-12-16 Thread Valerie Peng
On Fri, 20 Sep 2024 00:33:39 GMT, Weijun Wang wrote: > `Asserts.assertNotEquals` shows "expected 12345 to not equal 12345" which > sounds redundant, just say "expected not equals but was 12345". > > `Asserts.assertEqualsByteArray` uses the words "expected... to equal...". > Modify it to follow

Re: RFR: 8333867: SHA3 performance can be improved [v3]

2024-06-14 Thread Valerie Peng
On Fri, 14 Jun 2024 10:39:45 GMT, Ferenc Rakoczi wrote: >> This PR removes some unnecessary conversions between byte arrays and long >> arrays during SHA3 digest computations. > > Ferenc Rakoczi has updated the pull request incrementally with one additional > commit since the last revision: >

Re: RFR: 8333867: SHA3 performance can be improved [v3]

2024-06-14 Thread Valerie Peng
On Fri, 14 Jun 2024 10:39:45 GMT, Ferenc Rakoczi wrote: >> This PR removes some unnecessary conversions between byte arrays and long >> arrays during SHA3 digest computations. > > Ferenc Rakoczi has updated the pull request incrementally with one additional > commit since the last revision: >

Re: RFR: 8333867: SHA3 performance can be improved [v2]

2024-06-14 Thread Valerie Peng
On Fri, 14 Jun 2024 09:47:31 GMT, Ferenc Rakoczi wrote: >> src/java.base/share/classes/sun/security/provider/SHA3.java line 73: >> >>> 71: // The following array is allocated to size WIDTH bytes, but we only >>> 72: // ever use the first blockSize bytes it (for bytes <-> long >>> conver

Re: RFR: 8333867: SHA3 performance can be improved [v2]

2024-06-13 Thread Valerie Peng
On Wed, 12 Jun 2024 14:08:43 GMT, Ferenc Rakoczi wrote: >> This PR removes some unnecessary conversions between byte arrays and long >> arrays during SHA3 digest computations. > > Ferenc Rakoczi has updated the pull request incrementally with one additional > commit since the last revision: >

Re: RFR: 8325506: Ensure randomness is only read from provided SecureRandom object [v4]

2024-02-26 Thread Valerie Peng
On Sat, 17 Feb 2024 14:08:12 GMT, Weijun Wang wrote: >> Many crypto service classes require a `SecureRandom` object at >> initialization. This test goes through each of them and calculates >> (generate, encrypt, sign,...) twice with the same `SecureRandom` object and >> ensures the output is t

Re: RFR: 8325506: Ensure randomness is only read from provided SecureRandom object [v3]

2024-02-16 Thread Valerie Peng
On Tue, 13 Feb 2024 22:30:28 GMT, Weijun Wang wrote: >> Many crypto service classes require a `SecureRandom` object at >> initialization. This test goes through each of them and calculates >> (generate, encrypt, sign,...) twice with the same `SecureRandom` object and >> ensures the output is t

Re: RFR: 8325506: Ensure randomness is only read from provided SecureRandom object [v3]

2024-02-16 Thread Valerie Peng
On Tue, 13 Feb 2024 22:30:28 GMT, Weijun Wang wrote: >> Many crypto service classes require a `SecureRandom` object at >> initialization. This test goes through each of them and calculates >> (generate, encrypt, sign,...) twice with the same `SecureRandom` object and >> ensures the output is t

Re: RFR: 8267174: Many test files have the wrong Copyright header

2023-09-05 Thread Valerie Peng
On Tue, 5 Sep 2023 22:49:41 GMT, Erik Joelsson wrote: > There are a number of files in the `test` directory that have an incorrect > copyright header, which includes the "classpath" exception text. This patch > removes that text from all test files that I could find it in. I did this > using a

Re: RFR: JDK-8308398 Move SunEC crypto provider into java.base [v3]

2023-07-03 Thread Valerie Peng
On Mon, 3 Jul 2023 17:51:10 GMT, Anthony Scarpino wrote: >> Hi, >> >> I need a code review for moving the contents of the jdk.crypto.ec module >> into java.base. This moves the SunEC JCE Provider (Elliptic Curve) into >> java.base. EC has always been separate from the base module/pkg because

Re: RFR: JDK-8308398 Move SunEC crypto provider into java.base [v2]

2023-06-29 Thread Valerie Peng
On Mon, 26 Jun 2023 22:52:18 GMT, Anthony Scarpino wrote: >> Hi, >> >> I need a code review for moving the contents of the jdk.crypto.ec module >> into java.base. This moves the SunEC JCE Provider (Elliptic Curve) into >> java.base. EC has always been separate from the base module/pkg becau

Re: RFR: 8254711: Add java.security.Provider.getService JFR Event [v2]

2022-09-19 Thread Valerie Peng
On Mon, 19 Sep 2022 16:12:18 GMT, Sean Coffey wrote: >> Add a JFR Event for `java.security.Provider.getService(String type, String >> algorithm)` calls. > > Sean Coffey has updated the pull request incrementally with one additional > commit since the last revision: > > update from review com

Re: RFR: 8254711: Add java.security.Provider.getService JFR Event [v2]

2022-09-19 Thread Valerie Peng
On Mon, 19 Sep 2022 15:52:08 GMT, Sean Mullan wrote: >> I had this as the original design actually. I'm not sure how interesting it >> would be to record such "no-service" type events. It would probably add 2-4 >> times the number of events for this event type to a typical recording, given >>