Re: RFR: 8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field [v2]

2022-06-28 Thread Jayashree Huttanagoudar
On Tue, 28 Jun 2022 14:49:52 GMT, Jayashree Huttanagoudar wrote: >> The test can be much simpler than the program included in the bug report. >> Something like this: >> >> 1. Create an empty `X509CertImpl` >> 2. Add "x509.info" >> 3. Add "x509.info.issuer" >> 4. Remove "x509.info.issuer" >> 5.

Re: RFR: 8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field [v2]

2022-06-28 Thread Jayashree Huttanagoudar
> Could you please review the changes? > This is to address the issue: > https://bugs.openjdk.org/browse/JDK-8283082?jql=labels%20%3D%20starter-bug Jayashree Huttanagoudar has updated the pull request incrementally with one additional commit since the last revision: Address review comments -

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Bradford Wetmore
On Tue, 28 Jun 2022 22:13:25 GMT, Valerie Peng wrote: >> Mark Powers has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Valerie fix > > src/java.base/share/classes/javax/crypto/ProviderVerifier.java line 170: > >> 168: * NOTE: if this

Re: RFR: 8288985: P11TlsKeyMaterialGenerator should work with ChaCha20-Poly1305 [v3]

2022-06-28 Thread Valerie Peng
On Thu, 23 Jun 2022 23:01:36 GMT, Valerie Peng wrote: >> I have addressed both remarks. >> jdk_security tests passed for me locally with this change. >> Thanks > >> I have addressed both remarks. jdk_security tests passed for me locally with >> this change. Thanks > > I will submit a test job o

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/SecretKeyFactory.java

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/KeyGenerator.java line

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 22:02:31 GMT, Valerie Peng wrote: >> Mark Powers has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Valerie fix > > src/java.base/share/classes/javax/crypto/KeyGenerator.java line 297: > >> 295: * >> 296: * A

Integrated: 8289401: Add dump output to TestRawRSACipher.java

2022-06-28 Thread Hai-May Chao
On Tue, 28 Jun 2022 22:55:26 GMT, Hai-May Chao wrote: > Test TestRawRSACipher.java may fail intermittently. Please review changes to > dump out the input and output when it fails. This pull request has now been integrated. Changeset: 7b3bf977 Author:Hai-May Chao URL: https://git.op

Re: RFR: 8289401: Add dump output to TestRawRSACipher.java [v2]

2022-06-28 Thread Hai-May Chao
On Tue, 28 Jun 2022 23:18:28 GMT, Weijun Wang wrote: >> Hai-May Chao has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Update to use HexFormat > > Looks fine. @wangweij Thanks for the review. - PR: https://git.openjdk.org/jd

Re: RFR: 8289401: Add dump output to TestRawRSACipher.java [v2]

2022-06-28 Thread Weijun Wang
On Tue, 28 Jun 2022 23:22:20 GMT, Hai-May Chao wrote: >> Test TestRawRSACipher.java may fail intermittently. Please review changes to >> dump out the input and output when it fails. > > Hai-May Chao has updated the pull request incrementally with one additional > commit since the last revision:

Re: RFR: 8289401: Add dump output to TestRawRSACipher.java [v2]

2022-06-28 Thread Hai-May Chao
> Test TestRawRSACipher.java may fail intermittently. Please review changes to > dump out the input and output when it fails. Hai-May Chao has updated the pull request incrementally with one additional commit since the last revision: Update to use HexFormat - Changes: - all: h

RFR: 8289401: Add dump output to TestRawRSACipher.java

2022-06-28 Thread Hai-May Chao
Test TestRawRSACipher.java may fail intermittently. Please review changes to dump out the input and output when it fails. - Commit messages: - 8289401: Add dump output to TestRawRSACipher.java Changes: https://git.openjdk.org/jdk/pull/9316/files Webrev: https://webrevs.openjdk.org

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/KeyGenerator.java line

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/ExemptionMechanism.jav

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/EncryptedPrivateKeyInf

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Mark Powers
On Tue, 28 Jun 2022 21:32:47 GMT, Valerie Peng wrote: >> Mark Powers has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Valerie fix > > src/java.base/share/classes/javax/crypto/CryptoPolicyParser.java line 47: > >> 45: * that JCE has new

Re: RFR: 8289301: P11Cipher should not throw out of bounds exception during padding [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 13:20:53 GMT, zzambers wrote: >> SunPkcs11 provider throws out of bounds exception during encryption when >> specific conditions are met. >> >> Exception: >> >> Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array >> index out of range: 32 >> at

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/CryptoPolicyParser.jav

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/CryptoPermission.java

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/CipherOutputStream.jav

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Weijun Wang
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix This is the `java.security` part. src/java.base/share/classes/

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Mark Powers
On Tue, 28 Jun 2022 20:33:17 GMT, Valerie Peng wrote: >> src/java.base/share/classes/javax/crypto/Cipher.java line 184: >> >>> 182: >>> 183: /** >>> 184: * Constant used to initialize {@code Cipher} to encryption mode. >> >> If it's lower case, we normally just leave it? Not sure what

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/CipherOutputStream.jav

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/CipherOutputStream.jav

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Mark Powers
On Tue, 28 Jun 2022 20:16:37 GMT, Valerie Peng wrote: >> Mark Powers has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Valerie fix > > src/java.base/share/classes/javax/crypto/AEADBadTagException.java line 41: > >> 39: >> 40: /** >>

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/CipherInputStream.java

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 20:21:34 GMT, Valerie Peng wrote: >> Mark Powers has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Valerie fix > > src/java.base/share/classes/javax/crypto/Cipher.java line 184: > >> 182: >> 183: /** >> 184:

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/javax/crypto/AEADBadTagException.ja

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Mark Powers
On Tue, 28 Jun 2022 19:31:54 GMT, Valerie Peng wrote: >> Mark Powers has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Valerie fix > > src/java.base/share/classes/java/security/AccessControlContext.java line 58: > >> 56: * of the current

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Mark Powers
> https://bugs.openjdk.org/browse/JDK-8284851 Mark Powers has updated the pull request incrementally with one additional commit since the last revision: Valerie fix - Changes: - all: https://git.openjdk.org/jdk/pull/9282/files - new: https://git.openjdk.org/jdk/pull/9282/file

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes [v2]

2022-06-28 Thread Valerie Peng
On Tue, 28 Jun 2022 19:32:07 GMT, Mark Powers wrote: >> https://bugs.openjdk.org/browse/JDK-8284851 > > Mark Powers has updated the pull request incrementally with one additional > commit since the last revision: > > Valerie fix src/java.base/share/classes/java/security/AccessControlContext.

Re: RFR: 8288985: P11TlsKeyMaterialGenerator should work with ChaCha20-Poly1305 [v3]

2022-06-28 Thread zzambers
On Thu, 23 Jun 2022 23:01:36 GMT, Valerie Peng wrote: >> I have addressed both remarks. >> jdk_security tests passed for me locally with this change. >> Thanks > >> I have addressed both remarks. jdk_security tests passed for me locally with >> this change. Thanks > > I will submit a test job o

Re: RFR: 8288985: P11TlsKeyMaterialGenerator should work with ChaCha20-Poly1305 [v4]

2022-06-28 Thread zzambers
On Mon, 27 Jun 2022 13:18:44 GMT, zzambers wrote: >> TLS `*_CHACHA20_POLY1305_*` cipher suites are currently broken when >> configuration with SunPKCS11 provider is used. I discovered this by my >> ssl-tests testsuite [1]. >> >> >> make TEST_PKCS11_FIPS=1 >> SSLTESTS_SSL_CONFIG_FILTER=SunJSS

Re: RFR: 8288985: P11TlsKeyMaterialGenerator should work with ChaCha20-Poly1305 [v5]

2022-06-28 Thread zzambers
> TLS `*_CHACHA20_POLY1305_*` cipher suites are currently broken when > configuration with SunPKCS11 provider is used. I discovered this by my > ssl-tests testsuite [1]. > > > make TEST_PKCS11_FIPS=1 > SSLTESTS_SSL_CONFIG_FILTER=SunJSSE,Default,TLSv1.2,TLS_DHE_RSA_WITH_CHACHA20_POLY1305_SHA256

Re: RFR: 8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field

2022-06-28 Thread Jayashree Huttanagoudar
On Tue, 28 Jun 2022 13:26:47 GMT, Weijun Wang wrote: >> src/java.base/share/classes/sun/security/x509/X509CertImpl.java line 742: >> >>> 740: >>> 741: if (id.equalsIgnoreCase(INFO)) { >>> 742: if (!(attr.getSuffix() != null)) { >> >> You can simply update the `!=` to `==`.

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes

2022-06-28 Thread Mark Powers
On Fri, 24 Jun 2022 16:48:46 GMT, Mark Powers wrote: > https://bugs.openjdk.org/browse/JDK-8284851 Missing '-': changed "JDK 8284851" to JDK-8284851. From: TheShermanTanker ***@***.***> Sent: Tuesday, June 28, 2022 4:12 AM To: openjdk/jdk ***@***.***> Cc: Mark Po

Re: RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes

2022-06-28 Thread Julian Waters
On Fri, 24 Jun 2022 16:48:46 GMT, Mark Powers wrote: > https://bugs.openjdk.org/browse/JDK-8284851 @mcpowers Seems like Skara didn't correctly detect and link the JBS entry. Try renaming your title to just "8284851" and see if that works (It may take a while) - PR: https://git.op

RFR: JDK-8284851 Update javax.crypto files to use proper javadoc for mentioned classes

2022-06-28 Thread Mark Powers
https://bugs.openjdk.org/browse/JDK-8284851 - Commit messages: - mo polish - polish - Merge - second round - Merge - first round Changes: https://git.openjdk.org/jdk/pull/9282/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9282&range=00 Issue: https://bugs.openjdk.or

Re: RFR: 8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field

2022-06-28 Thread Weijun Wang
On Tue, 28 Jun 2022 13:17:42 GMT, Weijun Wang wrote: >> Could you please review the changes? >> This is to address the issue: >> https://bugs.openjdk.org/browse/JDK-8283082?jql=labels%20%3D%20starter-bug > > src/java.base/share/classes/sun/security/x509/X509CertImpl.java line 742: > >> 740: >>

Re: RFR: 8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field

2022-06-28 Thread Weijun Wang
On Tue, 28 Jun 2022 08:33:58 GMT, Jayashree Huttanagoudar wrote: > Could you please review the changes? > This is to address the issue: > https://bugs.openjdk.org/browse/JDK-8283082?jql=labels%20%3D%20starter-bug src/java.base/share/classes/sun/security/x509/X509CertImpl.java line 742: > 740:

Re: RFR: 8289301: P11Cipher should not throw out of bounds exception during padding

2022-06-28 Thread zzambers
On Tue, 28 Jun 2022 12:57:21 GMT, zzambers wrote: > SunPkcs11 provider throws out of bounds exception during encryption when > specific conditions are met. > > Exception: > > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array > index out of range: 32 > at java.ba

Re: RFR: 8289301: P11Cipher should not throw out of bounds exception during padding [v2]

2022-06-28 Thread zzambers
> SunPkcs11 provider throws out of bounds exception during encryption when > specific conditions are met. > > Exception: > > Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array > index out of range: 32 > at java.base/java.util.Arrays.rangeCheck(Arrays.java:725) >

RFR: 8289301: P11Cipher should not throw out of bounds exception during padding

2022-06-28 Thread zzambers
SunPkcs11 provider throws out of bounds exception during encryption when specific conditions are met. Exception: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Array index out of range: 32 at java.base/java.util.Arrays.rangeCheck(Arrays.java:725) at java.ba

RFR: 8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field

2022-06-28 Thread Jayashree Huttanagoudar
Could you please review the changes? This is to address the issue: https://bugs.openjdk.org/browse/JDK-8283082?jql=labels%20%3D%20starter-bug - Commit messages: - 8283082: sun.security.x509.X509CertImpl.delete("x509.info.validity") nulls out info field Changes: https://git.openjdk

RFR: 8289275: Remove incorrect __declspec(dllimport) attributes from pointers in jdk.crypto.cryptoki

2022-06-28 Thread Julian Waters
Several instances of function pointers in jdk.crypto.cryptoki are marked with the dllimport attribute, which should only be applied to symbol declarations, of which a typedef'd function pointer is not. In addition to being incorrect, at least on the versions of Visual C++ the JDK supports today,

RFR: 8289274: Cleanup unnecessary null comparison before instanceof check in security modules

2022-06-28 Thread Andrey Turbanov
Update code checks both non-null and instance of a class in security classes. The checks and explicit casts could also be replaced with pattern matching for the instanceof operator. See similar cleanup in java.base - [JDK-8258422](https://bugs.openjdk.java.net/browse/JDK-8258422) -