jdk/src/share/classes/sun/security/provider/ParameterCache.java
author valeriep
Tue, 25 Sep 2012 11:31:17 -0700
changeset 14003 53c498ff6b0b
parent 13672 604588823b5a
permissions -rw-r--r--
7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters Summary: Fixed initialize(int, SecureRandom) call to not error out when no precomputed params available. Reviewed-by: vinnie
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
/*
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
     2
 * Copyright (c) 2003, 2012, Oracle and/or its affiliates. All rights reserved.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     7
 * published by the Free Software Foundation.  Oracle designates this
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
 * particular file as subject to the "Classpath" exception as provided
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
     9
 * by Oracle in the LICENSE file that accompanied this code.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
 * This code is distributed in the hope that it will be useful, but WITHOUT
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
 * version 2 for more details (a copy is included in the LICENSE file that
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
 * accompanied this code).
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
 * You should have received a copy of the GNU General Public License version
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
 * 2 along with this work; if not, write to the Free Software Foundation,
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
 *
5506
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    21
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    22
 * or visit www.oracle.com if you need additional information or have any
202f599c92aa 6943119: Rebrand source copyright notices
ohair
parents: 2
diff changeset
    23
 * questions.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
package sun.security.provider;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
import java.util.*;
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    29
import java.util.concurrent.ConcurrentHashMap;
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
import java.math.BigInteger;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
import java.security.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
import java.security.SecureRandom;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
import java.security.spec.*;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
import javax.crypto.spec.DHParameterSpec;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
/**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
 * Cache for DSA and DH parameter specs. Used by the KeyPairGenerators
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
 * in the Sun, SunJCE, and SunPKCS11 provider if no parameters have been
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
 * explicitly specified by the application.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
 *
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
 * @author  Andreas Sterbenz
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
 * @since   1.5
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
 */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
public final class ParameterCache {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
90ce3da70b43 Initial load
duke
parents:
diff changeset
    48
    private ParameterCache() {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    49
        // empty
90ce3da70b43 Initial load
duke
parents:
diff changeset
    50
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    51
90ce3da70b43 Initial load
duke
parents:
diff changeset
    52
    // cache of DSA parameters
90ce3da70b43 Initial load
duke
parents:
diff changeset
    53
    private final static Map<Integer,DSAParameterSpec> dsaCache;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    54
90ce3da70b43 Initial load
duke
parents:
diff changeset
    55
    // cache of DH parameters
90ce3da70b43 Initial load
duke
parents:
diff changeset
    56
    private final static Map<Integer,DHParameterSpec> dhCache;
90ce3da70b43 Initial load
duke
parents:
diff changeset
    57
90ce3da70b43 Initial load
duke
parents:
diff changeset
    58
    /**
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    59
     * Return cached DSA parameters for the given length combination of
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    60
     * prime and subprime, or null if none are available in the cache.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    61
     */
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    62
    public static DSAParameterSpec getCachedDSAParameterSpec(int primeLen,
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    63
            int subprimeLen) {
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    64
        // ensure the sum is unique in all cases, i.e.
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    65
        // case#1: (512 <= p <= 1024) AND q=160
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    66
        // case#2: p=2048 AND q=224
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    67
        // case#3: p=2048 AND q=256
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    68
        // (NOT-YET-SUPPORTED)case#4: p=3072 AND q=256
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    69
        return dsaCache.get(Integer.valueOf(primeLen+subprimeLen));
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    70
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    71
90ce3da70b43 Initial load
duke
parents:
diff changeset
    72
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
    73
     * Return cached DH parameters for the given keylength, or null if none
90ce3da70b43 Initial load
duke
parents:
diff changeset
    74
     * are available in the cache.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    75
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
    76
    public static DHParameterSpec getCachedDHParameterSpec(int keyLength) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
    77
        return dhCache.get(Integer.valueOf(keyLength));
90ce3da70b43 Initial load
duke
parents:
diff changeset
    78
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
    79
90ce3da70b43 Initial load
duke
parents:
diff changeset
    80
    /**
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    81
     * Return DSA parameters for the given primeLen. Uses cache if
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    82
     * possible, generates new parameters and adds them to the cache
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    83
     * otherwise.
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    84
     */
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    85
    public static DSAParameterSpec getDSAParameterSpec(int primeLen,
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
    86
            SecureRandom random)
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    87
            throws NoSuchAlgorithmException, InvalidParameterSpecException,
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    88
                   InvalidAlgorithmParameterException {
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    89
        if (primeLen <= 1024) {
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    90
            return getDSAParameterSpec(primeLen, 160, random);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    91
        } else if (primeLen == 2048) {
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    92
            return getDSAParameterSpec(primeLen, 224, random);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    93
        } else {
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    94
            return null;
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    95
        }
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    96
    }
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    97
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    98
    /**
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
    99
     * Return DSA parameters for the given primeLen and subprimeLen.
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   100
     * Uses cache if possible, generates new parameters and adds them to the
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   101
     * cache otherwise.
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   102
     */
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   103
    public static DSAParameterSpec getDSAParameterSpec(int primeLen,
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   104
            int subprimeLen, SecureRandom random)
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   105
            throws NoSuchAlgorithmException, InvalidParameterSpecException,
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   106
                   InvalidAlgorithmParameterException {
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   107
        DSAParameterSpec spec =
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   108
            getCachedDSAParameterSpec(primeLen, subprimeLen);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   109
        if (spec != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   110
            return spec;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   111
        }
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   112
        spec = getNewDSAParameterSpec(primeLen, subprimeLen, random);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   113
        dsaCache.put(Integer.valueOf(primeLen + subprimeLen), spec);
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   114
        return spec;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   115
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   116
90ce3da70b43 Initial load
duke
parents:
diff changeset
   117
    /**
90ce3da70b43 Initial load
duke
parents:
diff changeset
   118
     * Return DH parameters for the given keylength. Uses cache if possible,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   119
     * generates new parameters and adds them to the cache otherwise.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   120
     */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   121
    public static DHParameterSpec getDHParameterSpec(int keyLength,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   122
            SecureRandom random)
90ce3da70b43 Initial load
duke
parents:
diff changeset
   123
            throws NoSuchAlgorithmException, InvalidParameterSpecException {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   124
        DHParameterSpec spec = getCachedDHParameterSpec(keyLength);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   125
        if (spec != null) {
90ce3da70b43 Initial load
duke
parents:
diff changeset
   126
            return spec;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   127
        }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   128
        AlgorithmParameterGenerator gen =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   129
                AlgorithmParameterGenerator.getInstance("DH");
90ce3da70b43 Initial load
duke
parents:
diff changeset
   130
        gen.init(keyLength, random);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   131
        AlgorithmParameters params = gen.generateParameters();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   132
        spec = params.getParameterSpec(DHParameterSpec.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   133
        dhCache.put(Integer.valueOf(keyLength), spec);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   134
        return spec;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   135
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   136
90ce3da70b43 Initial load
duke
parents:
diff changeset
   137
    /**
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   138
     * Return new DSA parameters for the given length combination of prime and
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   139
     * sub prime. Do not lookup in cache and do not cache the newly generated
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   140
     * parameters. This method really only exists for the legacy method
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   141
     * DSAKeyPairGenerator.initialize(int, boolean, SecureRandom).
90ce3da70b43 Initial load
duke
parents:
diff changeset
   142
     */
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   143
    public static DSAParameterSpec getNewDSAParameterSpec(int primeLen,
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   144
            int subprimeLen, SecureRandom random)
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   145
            throws NoSuchAlgorithmException, InvalidParameterSpecException,
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   146
                   InvalidAlgorithmParameterException {
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   147
        AlgorithmParameterGenerator gen =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   148
                AlgorithmParameterGenerator.getInstance("DSA");
14003
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   149
        // Use init(int size, SecureRandom random) for legacy DSA key sizes
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   150
        if (primeLen < 1024) {
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   151
            gen.init(primeLen, random);
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   152
        } else {
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   153
            DSAGenParameterSpec genParams =
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   154
                new DSAGenParameterSpec(primeLen, subprimeLen);
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   155
            gen.init(genParams, random);
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   156
        }
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   157
        AlgorithmParameters params = gen.generateParameters();
90ce3da70b43 Initial load
duke
parents:
diff changeset
   158
        DSAParameterSpec spec = params.getParameterSpec(DSAParameterSpec.class);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   159
        return spec;
90ce3da70b43 Initial load
duke
parents:
diff changeset
   160
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   161
90ce3da70b43 Initial load
duke
parents:
diff changeset
   162
    static {
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   163
        dhCache = new ConcurrentHashMap<Integer,DHParameterSpec>();
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   164
        dsaCache = new ConcurrentHashMap<Integer,DSAParameterSpec>();
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   165
90ce3da70b43 Initial load
duke
parents:
diff changeset
   166
        /*
14003
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   167
         * We support precomputed parameter for legacy 512, 768 bit moduli,
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   168
         * and (L, N) combinations of (1024, 160), (2048, 224), (2048, 256).
53c498ff6b0b 7199939: DSA 576 and 640 bit keys fail when initializing for No precomputed parameters
valeriep
parents: 13672
diff changeset
   169
         * In this file we provide both the seed and counter
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   170
         * value of the generation process for each of these seeds,
90ce3da70b43 Initial load
duke
parents:
diff changeset
   171
         * for validation purposes. We also include the test vectors
90ce3da70b43 Initial load
duke
parents:
diff changeset
   172
         * from the DSA specification, FIPS 186, and the FIPS 186
90ce3da70b43 Initial load
duke
parents:
diff changeset
   173
         * Change No 1, which updates the test vector using SHA-1
90ce3da70b43 Initial load
duke
parents:
diff changeset
   174
         * instead of SHA (for both the G function and the message
90ce3da70b43 Initial load
duke
parents:
diff changeset
   175
         * hash.
90ce3da70b43 Initial load
duke
parents:
diff changeset
   176
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   177
90ce3da70b43 Initial load
duke
parents:
diff changeset
   178
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   179
         * L = 512
90ce3da70b43 Initial load
duke
parents:
diff changeset
   180
         * SEED = b869c82b35d70e1b1ff91b28e37a62ecdc34409b
90ce3da70b43 Initial load
duke
parents:
diff changeset
   181
         * counter = 123
90ce3da70b43 Initial load
duke
parents:
diff changeset
   182
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   183
        BigInteger p512 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   184
            new BigInteger("fca682ce8e12caba26efccf7110e526db078b05edecb" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   185
                           "cd1eb4a208f3ae1617ae01f35b91a47e6df63413c5e1" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   186
                           "2ed0899bcd132acd50d99151bdc43ee737592e17", 16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   187
90ce3da70b43 Initial load
duke
parents:
diff changeset
   188
        BigInteger q512 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   189
            new BigInteger("962eddcc369cba8ebb260ee6b6a126d9346e38c5", 16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   190
90ce3da70b43 Initial load
duke
parents:
diff changeset
   191
        BigInteger g512 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   192
            new BigInteger("678471b27a9cf44ee91a49c5147db1a9aaf244f05a43" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   193
                           "4d6486931d2d14271b9e35030b71fd73da179069b32e" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   194
                           "2935630e1c2062354d0da20a6c416e50be794ca4", 16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   195
90ce3da70b43 Initial load
duke
parents:
diff changeset
   196
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   197
         * L = 768
90ce3da70b43 Initial load
duke
parents:
diff changeset
   198
         * SEED = 77d0f8c4dad15eb8c4f2f8d6726cefd96d5bb399
90ce3da70b43 Initial load
duke
parents:
diff changeset
   199
         * counter = 263
90ce3da70b43 Initial load
duke
parents:
diff changeset
   200
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   201
        BigInteger p768 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   202
            new BigInteger("e9e642599d355f37c97ffd3567120b8e25c9cd43e" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   203
                           "927b3a9670fbec5d890141922d2c3b3ad24800937" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   204
                           "99869d1e846aab49fab0ad26d2ce6a22219d470bc" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   205
                           "e7d777d4a21fbe9c270b57f607002f3cef8393694" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   206
                           "cf45ee3688c11a8c56ab127a3daf", 16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   207
90ce3da70b43 Initial load
duke
parents:
diff changeset
   208
        BigInteger q768 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   209
            new BigInteger("9cdbd84c9f1ac2f38d0f80f42ab952e7338bf511",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   210
                           16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   211
90ce3da70b43 Initial load
duke
parents:
diff changeset
   212
        BigInteger g768 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   213
            new BigInteger("30470ad5a005fb14ce2d9dcd87e38bc7d1b1c5fac" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   214
                           "baecbe95f190aa7a31d23c4dbbcbe06174544401a" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   215
                           "5b2c020965d8c2bd2171d3668445771f74ba084d2" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   216
                           "029d83c1c158547f3a9f1a2715be23d51ae4d3e5a" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   217
                           "1f6a7064f316933a346d3f529252", 16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   218
90ce3da70b43 Initial load
duke
parents:
diff changeset
   219
90ce3da70b43 Initial load
duke
parents:
diff changeset
   220
        /*
90ce3da70b43 Initial load
duke
parents:
diff changeset
   221
         * L = 1024
90ce3da70b43 Initial load
duke
parents:
diff changeset
   222
         * SEED = 8d5155894229d5e689ee01e6018a237e2cae64cd
90ce3da70b43 Initial load
duke
parents:
diff changeset
   223
         * counter = 92
90ce3da70b43 Initial load
duke
parents:
diff changeset
   224
         */
90ce3da70b43 Initial load
duke
parents:
diff changeset
   225
        BigInteger p1024 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   226
            new BigInteger("fd7f53811d75122952df4a9c2eece4e7f611b7523c" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   227
                           "ef4400c31e3f80b6512669455d402251fb593d8d58" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   228
                           "fabfc5f5ba30f6cb9b556cd7813b801d346ff26660" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   229
                           "b76b9950a5a49f9fe8047b1022c24fbba9d7feb7c6" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   230
                           "1bf83b57e7c6a8a6150f04fb83f6d3c51ec3023554" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   231
                           "135a169132f675f3ae2b61d72aeff22203199dd148" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   232
                           "01c7", 16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   233
90ce3da70b43 Initial load
duke
parents:
diff changeset
   234
        BigInteger q1024 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   235
            new BigInteger("9760508f15230bccb292b982a2eb840bf0581cf5",
90ce3da70b43 Initial load
duke
parents:
diff changeset
   236
                           16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   237
90ce3da70b43 Initial load
duke
parents:
diff changeset
   238
        BigInteger g1024 =
90ce3da70b43 Initial load
duke
parents:
diff changeset
   239
            new BigInteger("f7e1a085d69b3ddecbbcab5c36b857b97994afbbfa" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   240
                           "3aea82f9574c0b3d0782675159578ebad4594fe671" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   241
                           "07108180b449167123e84c281613b7cf09328cc8a6" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   242
                           "e13c167a8b547c8d28e0a3ae1e2bb3a675916ea37f" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   243
                           "0bfa213562f1fb627a01243bcca4f1bea8519089a8" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   244
                           "83dfe15ae59f06928b665e807b552564014c3bfecf" +
90ce3da70b43 Initial load
duke
parents:
diff changeset
   245
                           "492a", 16);
90ce3da70b43 Initial load
duke
parents:
diff changeset
   246
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   247
        dsaCache.put(Integer.valueOf(512+160),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   248
                                new DSAParameterSpec(p512, q512, g512));
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   249
        dsaCache.put(Integer.valueOf(768+160),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   250
                                new DSAParameterSpec(p768, q768, g768));
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   251
        dsaCache.put(Integer.valueOf(1024+160),
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   252
                                new DSAParameterSpec(p1024, q1024, g1024));
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   253
        /*
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   254
         * L = 2048, N = 224
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   255
         * SEED = 584236080cfa43c09b02354135f4cc5198a19efada08bd866d601ba4
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   256
         * counter = 2666
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   257
         */
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   258
        BigInteger p2048_224 =
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   259
            new BigInteger("8f7935d9b9aae9bfabed887acf4951b6f32ec59e3b" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   260
                           "af3718e8eac4961f3efd3606e74351a9c4183339b8" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   261
                           "09e7c2ae1c539ba7475b85d011adb8b47987754984" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   262
                           "695cac0e8f14b3360828a22ffa27110a3d62a99345" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   263
                           "3409a0fe696c4658f84bdd20819c3709a01057b195" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   264
                           "adcd00233dba5484b6291f9d648ef883448677979c" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   265
                           "ec04b434a6ac2e75e9985de23db0292fc1118c9ffa" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   266
                           "9d8181e7338db792b730d7b9e349592f6809987215" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   267
                           "3915ea3d6b8b4653c633458f803b32a4c2e0f27290" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   268
                           "256e4e3f8a3b0838a1c450e4e18c1a29a37ddf5ea1" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   269
                           "43de4b66ff04903ed5cf1623e158d487c608e97f21" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   270
                           "1cd81dca23cb6e380765f822e342be484c05763939" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   271
                           "601cd667", 16);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   272
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   273
        BigInteger q2048_224 =
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   274
            new BigInteger("baf696a68578f7dfdee7fa67c977c785ef32b233ba" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   275
                           "e580c0bcd5695d", 16);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   276
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   277
        BigInteger g2048_224 =
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   278
            new BigInteger("16a65c58204850704e7502a39757040d34da3a3478" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   279
                           "c154d4e4a5c02d242ee04f96e61e4bd0904abdac8f" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   280
                           "37eeb1e09f3182d23c9043cb642f88004160edf9ca" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   281
                           "09b32076a79c32a627f2473e91879ba2c4e744bd20" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   282
                           "81544cb55b802c368d1fa83ed489e94e0fa0688e32" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   283
                           "428a5c78c478c68d0527b71c9a3abb0b0be12c4468" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   284
                           "9639e7d3ce74db101a65aa2b87f64c6826db3ec72f" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   285
                           "4b5599834bb4edb02f7c90e9a496d3a55d535bebfc" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   286
                           "45d4f619f63f3dedbb873925c2f224e07731296da8" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   287
                           "87ec1e4748f87efb5fdeb75484316b2232dee553dd" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   288
                           "af02112b0d1f02da30973224fe27aeda8b9d4b2922" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   289
                           "d9ba8be39ed9e103a63c52810bc688b7e2ed4316e1" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   290
                           "ef17dbde", 16);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   291
        dsaCache.put(Integer.valueOf(2048+224),
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   292
                     new DSAParameterSpec(p2048_224, q2048_224, g2048_224));
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   293
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   294
        /*
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   295
         * L = 2048, N = 256
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   296
         * SEED = b0b4417601b59cbc9d8ac8f935cadaec4f5fbb2f23785609ae466748d9b5a536
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   297
         * counter = 497
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   298
         */
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   299
        BigInteger p2048_256 =
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   300
            new BigInteger("95475cf5d93e596c3fcd1d902add02f427f5f3c721" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   301
                           "0313bb45fb4d5bb2e5fe1cbd678cd4bbdd84c9836b" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   302
                           "e1f31c0777725aeb6c2fc38b85f48076fa76bcd814" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   303
                           "6cc89a6fb2f706dd719898c2083dc8d896f84062e2" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   304
                           "c9c94d137b054a8d8096adb8d51952398eeca852a0" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   305
                           "af12df83e475aa65d4ec0c38a9560d5661186ff98b" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   306
                           "9fc9eb60eee8b030376b236bc73be3acdbd74fd61c" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   307
                           "1d2475fa3077b8f080467881ff7e1ca56fee066d79" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   308
                           "506ade51edbb5443a563927dbc4ba520086746175c" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   309
                           "8885925ebc64c6147906773496990cb714ec667304" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   310
                           "e261faee33b3cbdf008e0c3fa90650d97d3909c927" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   311
                           "5bf4ac86ffcb3d03e6dfc8ada5934242dd6d3bcca2" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   312
                           "a406cb0b", 16);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   313
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   314
        BigInteger q2048_256 =
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   315
            new BigInteger("f8183668ba5fc5bb06b5981e6d8b795d30b8978d43" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   316
                           "ca0ec572e37e09939a9773", 16);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   317
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   318
        BigInteger g2048_256 =
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   319
            new BigInteger("42debb9da5b3d88cc956e08787ec3f3a09bba5f48b" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   320
                           "889a74aaf53174aa0fbe7e3c5b8fcd7a53bef563b0" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   321
                           "e98560328960a9517f4014d3325fc7962bf1e04937" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   322
                           "0d76d1314a76137e792f3f0db859d095e4a5b93202" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   323
                           "4f079ecf2ef09c797452b0770e1350782ed57ddf79" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   324
                           "4979dcef23cb96f183061965c4ebc93c9c71c56b92" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   325
                           "5955a75f94cccf1449ac43d586d0beee43251b0b22" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   326
                           "87349d68de0d144403f13e802f4146d882e057af19" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   327
                           "b6f6275c6676c8fa0e3ca2713a3257fd1b27d0639f" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   328
                           "695e347d8d1cf9ac819a26ca9b04cb0eb9b7b03598" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   329
                           "8d15bbac65212a55239cfc7e58fae38d7250ab9991" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   330
                           "ffbc97134025fe8ce04c4399ad96569be91a546f49" +
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   331
                           "78693c7a", 16);
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   332
        dsaCache.put(Integer.valueOf(2048+256),
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   333
                                new DSAParameterSpec(p2048_256, q2048_256, g2048_256));
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   334
90ce3da70b43 Initial load
duke
parents:
diff changeset
   335
        // use DSA parameters for DH as well
90ce3da70b43 Initial load
duke
parents:
diff changeset
   336
        dhCache.put(Integer.valueOf(512), new DHParameterSpec(p512, g512));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   337
        dhCache.put(Integer.valueOf(768), new DHParameterSpec(p768, g768));
90ce3da70b43 Initial load
duke
parents:
diff changeset
   338
        dhCache.put(Integer.valueOf(1024), new DHParameterSpec(p1024, g1024));
13672
604588823b5a 7044060: Need to support NSA Suite B Cryptography algorithms
valeriep
parents: 5506
diff changeset
   339
        dhCache.put(Integer.valueOf(2048), new DHParameterSpec(p2048_224, g2048_224));
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
   340
    }
90ce3da70b43 Initial load
duke
parents:
diff changeset
   341
90ce3da70b43 Initial load
duke
parents:
diff changeset
   342
}