Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/traxel/crypto/DHStockParameters.java


1   /* $Id: DHStockParameters.java,v 1.2 2001/03/20 00:51:19 cvsbob Exp $ */
2   
3   /*
4    * DHStockParameters.java, stock Diffie Hellman parameters.
5    * Copyright (C) 2001 Robert Bushman.
6    *
7    * I reserve the right to release this program under seperate license.
8    * If you require a special license grant contact Robert Bushman.
9    *
10   * This program is free software; you can redistribute it and/or
11   * modify it under the terms of the GNU General Public License
12   * as published by the Free Software Foundation; either version 2
13   * of the License, or (at your option) any later version.
14   *
15   * This program is distributed in the hope that it will be useful,
16   * but WITHOUT ANY WARRANTY; without even the implied warranty of
17   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
18   * GNU General Public License for more details.
19   * 
20   * You should have received a copy of the GNU General Public License
21   * along with this program; if not, write to the Free Software
22   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 
23   * 02111-1307, USA.
24   */
25  
26  package com.traxel.crypto;
27  
28  import java.math.BigInteger;
29  import javax.crypto.spec.DHParameterSpec;
30  
31  public interface DHStockParameters {
32      
33      public static final byte INSECURE_MODULUS_BYTES[] = {
34          (byte)0xF4, (byte)0x88, (byte)0xFD, (byte)0x58,
35          (byte)0x4E, (byte)0x49, (byte)0xDB, (byte)0xCD,
36          (byte)0x20, (byte)0xB4, (byte)0x9D, (byte)0xE4,
37          (byte)0x91, (byte)0x07, (byte)0x36, (byte)0x6B,
38          (byte)0x33, (byte)0x6C, (byte)0x38, (byte)0x0D,
39          (byte)0x45, (byte)0x1D, (byte)0x0F, (byte)0x7C,
40          (byte)0x88, (byte)0xB3, (byte)0x1C, (byte)0x7C,
41          (byte)0x5B, (byte)0x2D, (byte)0x8E, (byte)0xF6,
42          (byte)0xF3, (byte)0xC9, (byte)0x23, (byte)0xC0,
43          (byte)0x43, (byte)0xF0, (byte)0xA5, (byte)0x5B,
44          (byte)0x18, (byte)0x8D, (byte)0x8E, (byte)0xBB,
45          (byte)0x55, (byte)0x8C, (byte)0xB8, (byte)0x5D,
46          (byte)0x38, (byte)0xD3, (byte)0x34, (byte)0xFD,
47          (byte)0x7C, (byte)0x17, (byte)0x57, (byte)0x43,
48          (byte)0xA3, (byte)0x1D, (byte)0x18, (byte)0x6C,
49          (byte)0xDE, (byte)0x33, (byte)0x21, (byte)0x2C,
50          (byte)0xB5, (byte)0x2A, (byte)0xFF, (byte)0x3C,
51          (byte)0xE1, (byte)0xB1, (byte)0x29, (byte)0x40,
52          (byte)0x18, (byte)0x11, (byte)0x8D, (byte)0x7C,
53          (byte)0x84, (byte)0xA7, (byte)0x0A, (byte)0x72,
54          (byte)0xD6, (byte)0x86, (byte)0xC4, (byte)0x03,
55          (byte)0x19, (byte)0xC8, (byte)0x07, (byte)0x29,
56          (byte)0x7A, (byte)0xCA, (byte)0x95, (byte)0x0C,
57          (byte)0xD9, (byte)0x96, (byte)0x9F, (byte)0xAB,
58          (byte)0xD0, (byte)0x0A, (byte)0x50, (byte)0x9B,
59          (byte)0x02, (byte)0x46, (byte)0xD3, (byte)0x08,
60          (byte)0x3D, (byte)0x66, (byte)0xA4, (byte)0x5D,
61          (byte)0x41, (byte)0x9F, (byte)0x9C, (byte)0x7C,
62          (byte)0xBD, (byte)0x89, (byte)0x4B, (byte)0x22,
63          (byte)0x19, (byte)0x26, (byte)0xBA, (byte)0xAB,
64          (byte)0xA2, (byte)0x5E, (byte)0xC3, (byte)0x55,
65          (byte)0xE9, (byte)0x2F, (byte)0x78, (byte)0xC7
66      };
67      
68      public static final BigInteger INSECURE_MODULUS =
69          new BigInteger( 1, INSECURE_MODULUS_BYTES );
70      
71      public static final BigInteger INSECURE_BASE = BigInteger.valueOf( 2 );
72      
73      public static final DHParameterSpec INSECURE_PARAMETERS =
74          new DHParameterSpec( INSECURE_MODULUS, INSECURE_BASE );
75  }
76