Mercurial > hg > icedtea8-forest > jdk
changeset 13925:d08372424e32
8129560: TestKeyPairGenerator.java fails on Solaris because private exponent needs to comply with FIPS 186-4
Summary: Replace BigInteger.valueof(3) with RSAKeyGenParameterSpec.F4
Reviewed-by: coffeys
author | phh |
---|---|
date | Mon, 22 Oct 2018 15:20:49 +0000 |
parents | ebe635565ff3 |
children | 93ed62498ddc |
files | test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java Fri Oct 19 10:30:26 2018 -0700 +++ b/test/sun/security/pkcs11/rsa/TestKeyPairGenerator.java Mon Oct 22 15:20:49 2018 +0000 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2003, 2015, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2003, 2018, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -103,7 +103,7 @@ data = new byte[2048]; // keypair generation is very slow, test only a few short keys int[] keyLengths = {512, 512, 1024}; - BigInteger[] pubExps = {null, BigInteger.valueOf(3), null}; + BigInteger[] pubExps = {null, RSAKeyGenParameterSpec.F4, null}; KeyPair[] keyPairs = new KeyPair[3]; new Random().nextBytes(data); KeyPairGenerator kpg = KeyPairGenerator.getInstance("RSA", provider);