src/share/classes/java/security/spec/RSAMultiPrimePrivateCrtKeySpec.java

Print this page

        

*** 1,7 **** /* ! * Copyright (c) 2001, 2003, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this --- 1,7 ---- /* ! * Copyright (c) 2001, 2013, 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 * under the terms of the GNU General Public License version 2 only, as * published by the Free Software Foundation. Oracle designates this
*** 55,70 **** private final BigInteger primeExponentQ; private final BigInteger crtCoefficient; private final RSAOtherPrimeInfo otherPrimeInfo[]; /** ! * Creates a new <code>RSAMultiPrimePrivateCrtKeySpec</code> * given the modulus, publicExponent, privateExponent, * primeP, primeQ, primeExponentP, primeExponentQ, * crtCoefficient, and otherPrimeInfo as defined in PKCS#1 v2.1. * ! * <p>Note that the contents of <code>otherPrimeInfo</code> * are copied to protect against subsequent modification when * constructing this object. * * @param modulus the modulus n. * @param publicExponent the public exponent e. --- 55,70 ---- private final BigInteger primeExponentQ; private final BigInteger crtCoefficient; private final RSAOtherPrimeInfo otherPrimeInfo[]; /** ! * Creates a new {@code RSAMultiPrimePrivateCrtKeySpec} * given the modulus, publicExponent, privateExponent, * primeP, primeQ, primeExponentP, primeExponentQ, * crtCoefficient, and otherPrimeInfo as defined in PKCS#1 v2.1. * ! * <p>Note that the contents of {@code otherPrimeInfo} * are copied to protect against subsequent modification when * constructing this object. * * @param modulus the modulus n. * @param publicExponent the public exponent e.
*** 76,92 **** * @param crtCoefficient the Chinese Remainder Theorem * coefficient q-1 mod p. * @param otherPrimeInfo triplets of the rest of primes, null can be * specified if there are only two prime factors (p and q). * @exception NullPointerException if any of the parameters, i.e. ! * <code>modulus</code>, ! * <code>publicExponent</code>, <code>privateExponent</code>, ! * <code>primeP</code>, <code>primeQ</code>, ! * <code>primeExponentP</code>, <code>primeExponentQ</code>, ! * <code>crtCoefficient</code>, is null. * @exception IllegalArgumentException if an empty, i.e. 0-length, ! * <code>otherPrimeInfo</code> is specified. */ public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP, --- 76,92 ---- * @param crtCoefficient the Chinese Remainder Theorem * coefficient q-1 mod p. * @param otherPrimeInfo triplets of the rest of primes, null can be * specified if there are only two prime factors (p and q). * @exception NullPointerException if any of the parameters, i.e. ! * {@code modulus}, ! * {@code publicExponent}, {@code privateExponent}, ! * {@code primeP}, {@code primeQ}, ! * {@code primeExponentP}, {@code primeExponentQ}, ! * {@code crtCoefficient}, is null. * @exception IllegalArgumentException if an empty, i.e. 0-length, ! * {@code otherPrimeInfo} is specified. */ public RSAMultiPrimePrivateCrtKeySpec(BigInteger modulus, BigInteger publicExponent, BigInteger privateExponent, BigInteger primeP,