72 Commits

Author SHA1 Message Date
Sean Mullan
d9d9d8701a 8055206: Update SecurityManager::checkPackageAccess to restrict non-exported JDK packages by default
Reviewed-by: mchung
2017-01-19 13:50:02 -05:00
Valerie Peng
e281099d2f 8170245: [TEST_BUG] Cipher tests fail when running with unlimited policy
Updated the failed cipher tests to work under unlimited policy

Reviewed-by: xuelei
2016-12-05 23:23:27 +00:00
Alan Bateman
fbe85300bf 8169069: Module system implementation refresh (11/2016)
Co-authored-by: Mandy Chung <mandy.chung@oracle.com>
Co-authored-by: Claes Redestad <claes.redestad@oracle.com>
Co-authored-by: Mark Reinhold <mark.reinhold@oracle.com>
Reviewed-by: plevart, chegar, psandoz, mchung, alanb, dfuchs, naoto, coffeys, weijun
2016-12-01 08:57:53 +00:00
Martin Buchholz
6b29ad4ffc 8166976: TestCipherPBECons has wrong @run line
Reviewed-by: snikandrova, wetmore, rasbold
2016-09-30 10:30:57 -07:00
Artem Smotrakov
f86257fff9 8164100: com/sun/crypto/provider/KeyFactory/TestProviderLeak.java fails with java.util.concurrent.TimeoutException
Reviewed-by: valeriep
2016-08-19 10:57:44 -07:00
Sibabrata Sahoo
a558bfc790 8158116: com/sun/crypto/provider/KeyAgreement/SupportedDHParamGens.java failed with timeout
Reviewed-by: xuelei
2016-07-05 10:07:13 -07:00
Artem Kosarev
1fedf2692e 8157603: TestCipher.java doesn't check one of the decrypted message as expected
Reviewed-by: valeriep
2016-06-07 08:54:46 -07:00
Weijun Wang
b932c60a85 8051408: NIST SP 800-90A SecureRandom implementations
Reviewed-by: wetmore, xuelei, coffeys
2016-05-06 11:38:44 +08:00
Xue-Lei Andrew Fan
7f30460ff6 8072452: Support DHE sizes up to 8192-bits and DSA sizes up to 3072-bits
Reviewed-by: valeriep, mullan, coffeys
2016-04-15 11:09:18 +00:00
Sean Mullan
ed0eef5c6b Merge 2016-03-07 10:11:59 -05:00
Sean Mullan
e868165acc 8138653: Default key sizes for the AlgorithmParameterGenerator and KeyPairGenerator implementations should be upgraded
Reviewed-by: coffeys, vinnie
2016-03-07 10:10:04 -05:00
Vinnie Ryan
3698f154bf 8151149: CipherSpi implementation of PBEWithSHA1AndDESede returns key size in bytes
Reviewed-by: xuelei
2016-03-07 14:52:36 +00:00
Alan Bateman
3573d65040 8148147: Sync up @modules from jigsaw/jake
Reviewed-by: chegar, mchung
2016-01-25 19:01:19 +00:00
Bhanu Prakash Gopularam
298315e8f8 8133085: Avoid creating instances of security providers when possible
Reviewed-by: mullan
2016-01-20 09:21:57 -08:00
Chris Hegarty
a979586dce 8144995: Move sun.misc.HexDumpEncoder to sun.security.util
Reviewed-by: psandoz, mchung
2015-12-14 19:24:33 +00:00
Chris Hegarty
ebceee6674 8144480: Remove test dependencies on sun.misc.BASE64Encoder and BASE64Decoder
Reviewed-by: alanb, amlu, psandoz, weijun
2015-12-03 11:57:14 +00:00
Sha Jiang
451024f8df 8075286: Additional tests for signature algorithm OIDs and transformation string
SQE test co-location effort

Reviewed-by: valeriep
2015-09-24 18:16:56 +00:00
Valerie Peng
500cb7ea83 8137068: Tests added in JDK-8048604 fail to compile
Fixed the 2 tests with correct jprt tags

Reviewed-by: xuelei
2015-09-24 01:45:44 +00:00
Tristan Yan
6b149df3f8 8048604: Tests for strong crypto ciphers
SQE test co-location effort

Reviewed-by: valeriep
2015-09-23 21:28:14 +00:00
Martin Buchholz
24742f7b1d 8134984: Text files should end in exactly one newline
Automated fixup of newlines at end-of-file via the usual perl one-liner

Reviewed-by: chegar, sherman
2015-09-02 14:11:50 -07:00
Rajan Halade
3f1537d197 8048601: Tests for JCE crypto ciphers (part 1)
Reviewed-by: valeriep
2015-08-28 13:35:54 -07:00
Artem Smotrakov
b6bee08125 8048596: Tests for AEAD ciphers
Reviewed-by: valeriep
2015-07-25 08:50:45 +03:00
Rajan Halade
9ba56436a1 8041787: Need new regressions tests for buffer handling for PBE algorithms
Reviewed-by: vinnie
2015-07-15 18:12:48 +01:00
Weijun Wang
8804c9df5f 8130297: com/sun/crypto/provider/KeyFactory/TestProviderLeak.java still failing after JDK-8076040
Reviewed-by: darcy
2015-07-02 13:20:46 +08:00
Weijun Wang
8f2396ede1 8076040: Test com/sun/crypto/provider/KeyFactory/TestProviderLeak.java fails with -XX:+UseG1GC
Reviewed-by: darcy
2015-07-02 09:19:42 +08:00
Alejandro Murillo
f55c892a65 Merge 2015-06-30 11:20:43 -07:00
Mandy Chung
1465e16631 8130007: Update security tests to use Security.getProvider to get security provider
Co-authored-by: Valerie Peng <valerie.peng@oracle.com>
Reviewed-by: mullan
2015-06-29 11:38:36 -07:00
Anthony Scarpino
57a503e4fc 8073108: Use x86 and SPARC CPU instructions for GHASH acceleration
Reviewed-by: kvn, jrose
2015-06-17 17:41:04 -07:00
Mandy Chung
53a97cbeb3 8081347: Add @modules to jdk_core tests
Co-authored-by: Alexander Kulyakthin <alexander.kulyakhtin@oracle.com>
Co-authored-by: Alan Bateman <alan.bateman@oracle.com>
Reviewed-by: alanb, joehw, lancea
2015-05-28 10:54:48 -07:00
Zaiyao Liu
c7c5826bb2 8048599: Tests for key wrap and unwrap operations
Reviewed-by: xuelei
2015-05-21 09:35:26 +00:00
Joe Darcy
86c109e149 8078334: Mark regression tests using randomness
Reviewed-by: xuelei, alanb
2015-04-29 10:25:53 -07:00
Zaiyao Liu
02614afbd1 8044193: Need to add known answer tests for AES cipher
Added more tests for AES cipher using known test vectors.

Reviewed-by: valeriep
2015-03-06 00:49:38 +00:00
Zaiyao Liu
fae048d0e2 8048610: Implement regression test for bug fix of 4686632 in JCE
Reviewed-by: weijun
2015-03-04 16:26:49 +08:00
Florian Weimer
5c35079895 8069072: GHASH performance improvement
Eliminate allocations and vectorize

Reviewed-by: mullan, ascarpino
2015-02-09 13:32:42 -08:00
Artem Smotrakov
e268dee361 8048603: Additional tests for MAC algorithms
Reviewed-by: valeriep
2015-01-13 14:26:34 +03:00
Zaiyao Liu
48d9e1f35e 8048607: Test key generation of DES and DESEDE
Reviewed-by: xuelei
2015-01-07 03:59:06 +00:00
Amanda Jiang
7ffa3cd669 8048819: Implement reliability test for DH algorithm
Added DH test for up-to-4 parties key exchange

Reviewed-by: valeriep
2014-12-12 00:19:17 +00:00
Felix Yang
d1ee28b070 8043836: Need new tests for AES cipher
Add AES cipher tests with various modes, padding schemes and read methods of CipherInputStream for SunJCE provider

Reviewed-by: valeriep
2014-08-08 17:47:50 +00:00
Rajan Halade
44c5f51ddf 8041781: Need new regression tests for PBE keys
Reviewed-by: xuelei
2014-07-10 03:07:48 +00:00
Valerie Peng
edc85c8e4c 8027575: b113 causing a lot of memory allocation and regression for wls_webapp_atomics
Reduce buffer allocation and do multiple cipher encryption/decryption calls.

Reviewed-by: xuelei, ascarpino
2014-07-01 20:35:43 +00:00
Xue-Lei Andrew Fan
2f501cd8a5 8028192: Use of PKCS11-NSS provider in FIPS mode broken
Reviewed-by: ahgross, ascarpino, asmotrak
2014-04-09 12:49:51 +00:00
Rajan Halade
56b41822fb 8033271: Manual security tests have @ignore rather than @run main/manual
Reviewed-by: xuelei, wetmore
2014-03-18 15:04:59 -07:00
Valerie Peng
be7c03049b 8026943: SQE test jce/Global/Cipher/SameBuffer failed
Always use different input/output buffers when calling FeedbackCipher objects

Reviewed-by: mullan
2013-11-19 15:29:56 -08:00
Dan Xu
f7db4eb56b 8027624: com/sun/crypto/provider/KeyFactory/TestProviderLeak.java unstable again
Reviewed-by: wetmore
2013-11-01 14:40:03 -07:00
Valerie Peng
a5add24f51 8012900: CICO ignores AAD in GCM mode
Change GCM decryption to not return result until tag verification passed

Reviewed-by: xuelei
2013-10-08 11:17:53 -07:00
Anthony Scarpino
6b3b53caa1 8022669: OAEPParameterSpec does not work if MGF1ParameterSpec is set to SHA2 algorithms
Reviewed-by: mullan
2013-08-14 10:50:52 -07:00
Anthony Scarpino
7adae55d1d 8020081: Cipher with OAEPPadding and OAEPParameterSpec can't be created
Reviewed-by: mullan
2013-08-12 11:25:42 -07:00
Anthony Scarpino
bc2fd2fe9c 6755701: SunJCE DES/DESede SecretKeyFactory.generateSecret throws InvalidKeySpecExc if passed SecretKeySpec
Reviewed-by: valeriep, wetmore, xuelei
2013-07-08 10:20:46 -07:00
Valerie Peng
3c38993366 8012637: Adjust CipherInputStream class to work in AEAD/GCM mode
Ensure the Cipher.doFinal() is called only once

Reviewed-by: xuelei
2013-07-05 13:53:37 -07:00
Valerie Peng
3ecc12a044 8013069: javax.crypto tests fail with new PBE algorithm names
Shouldn't auto-generate default parameters for MAC objects.

Reviewed-by: vinnie
2013-05-29 20:54:43 -07:00