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

Print this page

        

*** 39,71 **** private final int qLen; private final int seedLen; /** * Creates a domain parameter specification for DSA parameter ! * generation using <code>primePLen</code> and <code>subprimeQLen</code>. ! * The value of <code>subprimeQLen</code> is also used as the default * length of the domain parameter seed in bits. * @param primePLen the desired length of the prime P in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits. ! * @exception IllegalArgumentException if <code>primePLen</code> ! * or <code>subprimeQLen</code> is illegal per the specification of * FIPS 186-3. */ public DSAGenParameterSpec(int primePLen, int subprimeQLen) { this(primePLen, subprimeQLen, subprimeQLen); } /** * Creates a domain parameter specification for DSA parameter ! * generation using <code>primePLen</code>, <code>subprimeQLen</code>, ! * and <code>seedLen</code>. * @param primePLen the desired length of the prime P in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits. * @param seedLen the desired length of the domain parameter seed in bits, ! * shall be equal to or greater than <code>subprimeQLen</code>. ! * @exception IllegalArgumentException if <code>primePLenLen</code>, ! * <code>subprimeQLen</code>, or <code>seedLen</code> is illegal per the * specification of FIPS 186-3. */ public DSAGenParameterSpec(int primePLen, int subprimeQLen, int seedLen) { switch (primePLen) { case 1024: --- 39,71 ---- private final int qLen; private final int seedLen; /** * Creates a domain parameter specification for DSA parameter ! * generation using {@code primePLen} and {@code subprimeQLen}. ! * The value of {@code subprimeQLen} is also used as the default * length of the domain parameter seed in bits. * @param primePLen the desired length of the prime P in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits. ! * @exception IllegalArgumentException if {@code primePLen} ! * or {@code subprimeQLen} is illegal per the specification of * FIPS 186-3. */ public DSAGenParameterSpec(int primePLen, int subprimeQLen) { this(primePLen, subprimeQLen, subprimeQLen); } /** * Creates a domain parameter specification for DSA parameter ! * generation using {@code primePLen}, {@code subprimeQLen}, ! * and {@code seedLen}. * @param primePLen the desired length of the prime P in bits. * @param subprimeQLen the desired length of the sub-prime Q in bits. * @param seedLen the desired length of the domain parameter seed in bits, ! * shall be equal to or greater than {@code subprimeQLen}. ! * @exception IllegalArgumentException if {@code primePLenLen}, ! * {@code subprimeQLen}, or {@code seedLen} is illegal per the * specification of FIPS 186-3. */ public DSAGenParameterSpec(int primePLen, int subprimeQLen, int seedLen) { switch (primePLen) { case 1024: