2362N/A * Copyright (c) 2003, Oracle and/or its affiliates. All rights reserved. 0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 0N/A * This code is free software; you can redistribute it and/or modify it 0N/A * under the terms of the GNU General Public License version 2 only, as 2362N/A * published by the Free Software Foundation. Oracle designates this 0N/A * particular file as subject to the "Classpath" exception as provided 2362N/A * by Oracle in the LICENSE file that accompanied this code. 0N/A * This code is distributed in the hope that it will be useful, but WITHOUT 0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 0N/A * version 2 for more details (a copy is included in the LICENSE file that 0N/A * accompanied this code). 0N/A * You should have received a copy of the GNU General Public License version 0N/A * 2 along with this work; if not, write to the Free Software Foundation, 0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 2362N/A * or visit www.oracle.com if you need additional information or have any 0N/A * Cache for DSA and DH parameter specs. Used by the KeyPairGenerators 0N/A * in the Sun, SunJCE, and SunPKCS11 provider if no parameters have been 0N/A * explicitly specified by the application. 0N/A * @author Andreas Sterbenz 0N/A // cache of DSA parameters 0N/A // cache of DH parameters 0N/A * Return cached DSA parameters for the given keylength, or null if none 0N/A * are available in the cache. 0N/A * Return cached DH parameters for the given keylength, or null if none 0N/A * are available in the cache. 0N/A * Return DSA parameters for the given keylength. Uses cache if possible, 0N/A * generates new parameters and adds them to the cache otherwise. 0N/A * Return DH parameters for the given keylength. Uses cache if possible, 0N/A * generates new parameters and adds them to the cache otherwise. 0N/A * Return new DSA parameters for the given keylength. Do not lookup in 0N/A * cache and do not cache the newly generated parameters. This method 0N/A * really only exists for the legacy method 0N/A // XXX change to ConcurrentHashMap once available 0N/A * We support precomputed parameter for 512, 768 and 1024 bit 0N/A * moduli. In this file we provide both the seed and counter 0N/A * value of the generation process for each of these seeds, 0N/A * for validation purposes. We also include the test vectors 0N/A * from the DSA specification, FIPS 186, and the FIPS 186 0N/A * Change No 1, which updates the test vector using SHA-1 0N/A * instead of SHA (for both the G function and the message 0N/A * SEED = b869c82b35d70e1b1ff91b28e37a62ecdc34409b 0N/A "cd1eb4a208f3ae1617ae01f35b91a47e6df63413c5e1" +
0N/A "2ed0899bcd132acd50d99151bdc43ee737592e17",
16);
0N/A "4d6486931d2d14271b9e35030b71fd73da179069b32e" +
0N/A "2935630e1c2062354d0da20a6c416e50be794ca4",
16);
0N/A * SEED = 77d0f8c4dad15eb8c4f2f8d6726cefd96d5bb399 0N/A "927b3a9670fbec5d890141922d2c3b3ad24800937" +
0N/A "99869d1e846aab49fab0ad26d2ce6a22219d470bc" +
0N/A "e7d777d4a21fbe9c270b57f607002f3cef8393694" +
0N/A "cf45ee3688c11a8c56ab127a3daf",
16);
0N/A "baecbe95f190aa7a31d23c4dbbcbe06174544401a" +
0N/A "5b2c020965d8c2bd2171d3668445771f74ba084d2" +
0N/A "029d83c1c158547f3a9f1a2715be23d51ae4d3e5a" +
0N/A "1f6a7064f316933a346d3f529252",
16);
0N/A * SEED = 8d5155894229d5e689ee01e6018a237e2cae64cd 0N/A "ef4400c31e3f80b6512669455d402251fb593d8d58" +
0N/A "fabfc5f5ba30f6cb9b556cd7813b801d346ff26660" +
0N/A "b76b9950a5a49f9fe8047b1022c24fbba9d7feb7c6" +
0N/A "1bf83b57e7c6a8a6150f04fb83f6d3c51ec3023554" +
0N/A "135a169132f675f3ae2b61d72aeff22203199dd148" +
0N/A "3aea82f9574c0b3d0782675159578ebad4594fe671" +
0N/A "07108180b449167123e84c281613b7cf09328cc8a6" +
0N/A "e13c167a8b547c8d28e0a3ae1e2bb3a675916ea37f" +
0N/A "0bfa213562f1fb627a01243bcca4f1bea8519089a8" +
0N/A "83dfe15ae59f06928b665e807b552564014c3bfecf" +
0N/A // use DSA parameters for DH as well