Re: RFR: 8336240: Test com/sun/crypto/provider/Cipher/DES/PerformanceTest.java fails with java.lang.ArithmeticException [v5]

2024-07-26 Thread duke
On Thu, 25 Jul 2024 09:46:48 GMT, Fernando Guallini wrote: >> The manual test Cipher/DES/PerformanceTest.java fails with >> ArithmeticException due to potential division by zero. The issue arises when >> calculating the elapsed time using end - start, which could result in zero >> millisecond

Re: RFR: 8336240: Test com/sun/crypto/provider/Cipher/DES/PerformanceTest.java fails with java.lang.ArithmeticException [v6]

2024-07-26 Thread Fernando Guallini
> The manual test Cipher/DES/PerformanceTest.java fails with > ArithmeticException due to potential division by zero. The issue arises when > calculating the elapsed time using end - start, which could result in zero > milliseconds if start and end are identical due to the high speed of > execu

Re: RFR: 8298420: PEM API: Implementation (Preview) [v2]

2024-07-26 Thread Weijun Wang
On Fri, 26 Jul 2024 04:10:54 GMT, Anthony Scarpino wrote: >> src/java.base/share/classes/javax/crypto/EncryptedPrivateKeyInfo.java line >> 325: >> >>> 323: * @param key the PrivateKey object to encrypt. >>> 324: * @param password the password used in the PBE encryption. >>> 325:

Re: RFR: 8298420: PEM API: Implementation (Preview) [v2]

2024-07-26 Thread Weijun Wang
On Fri, 26 Jul 2024 04:02:21 GMT, Anthony Scarpino wrote: >> src/java.base/share/classes/java/security/PEMEncoder.java line 88: >> >>> 86: >>> 87: // If non-null, encoder is configured for encryption >>> 88: private Cipher cipher = null; >> >> Is it worth creating `cipher` lazily? Als

Re: RFR: 8331008: Implement JEP 478: Key Derivation Function API (Preview) [v8]

2024-07-26 Thread Sean Mullan
On Thu, 25 Jul 2024 19:29:05 GMT, Kevin Driver wrote: >> Introduce an API for Key Derivation Functions (KDFs), which are >> cryptographic algorithms for deriving additional keys from a secret key and >> other data. See [JEP 478](https://openjdk.org/jeps/478). >> >> Work was begun in [another P

Re: RFR: 8336240: Test com/sun/crypto/provider/Cipher/DES/PerformanceTest.java fails with java.lang.ArithmeticException [v6]

2024-07-26 Thread Bradford Wetmore
On Fri, 26 Jul 2024 11:06:04 GMT, Fernando Guallini wrote: >> The manual test Cipher/DES/PerformanceTest.java fails with >> ArithmeticException due to potential division by zero. The issue arises when >> calculating the elapsed time using end - start, which could result in zero >> millisecond

Re: RFR: 8331008: Implement JEP 478: Key Derivation Function API (Preview) [v8]

2024-07-26 Thread Sean Mullan
On Thu, 25 Jul 2024 19:29:05 GMT, Kevin Driver wrote: >> Introduce an API for Key Derivation Functions (KDFs), which are >> cryptographic algorithms for deriving additional keys from a secret key and >> other data. See [JEP 478](https://openjdk.org/jeps/478). >> >> Work was begun in [another P

Re: RFR: 8336240: Test com/sun/crypto/provider/Cipher/DES/PerformanceTest.java fails with java.lang.ArithmeticException [v6]

2024-07-26 Thread duke
On Fri, 26 Jul 2024 11:06:04 GMT, Fernando Guallini wrote: >> The manual test Cipher/DES/PerformanceTest.java fails with >> ArithmeticException due to potential division by zero. The issue arises when >> calculating the elapsed time using end - start, which could result in zero >> millisecond

Integrated: 8336240: Test com/sun/crypto/provider/Cipher/DES/PerformanceTest.java fails with java.lang.ArithmeticException

2024-07-26 Thread Fernando Guallini
On Thu, 11 Jul 2024 09:51:10 GMT, Fernando Guallini wrote: > The manual test Cipher/DES/PerformanceTest.java fails with > ArithmeticException due to potential division by zero. The issue arises when > calculating the elapsed time using end - start, which could result in zero > milliseconds if

Re: RFR: 8336240: Test com/sun/crypto/provider/Cipher/DES/PerformanceTest.java fails with java.lang.ArithmeticException [v6]

2024-07-26 Thread Bradford Wetmore
On Fri, 26 Jul 2024 11:06:04 GMT, Fernando Guallini wrote: >> The manual test Cipher/DES/PerformanceTest.java fails with >> ArithmeticException due to potential division by zero. The issue arises when >> calculating the elapsed time using end - start, which could result in zero >> millisecond

Re: RFR: 8331008: Implement JEP 478: Key Derivation Function API (Preview) [v9]

2024-07-26 Thread Kevin Driver
> Introduce an API for Key Derivation Functions (KDFs), which are cryptographic > algorithms for deriving additional keys from a secret key and other data. See > [JEP 478](https://openjdk.org/jeps/478). > > Work was begun in [another PR](https://github.com/openjdk/jdk/pull/18924). Kevin Driver