Source code: com/ciphercore/DHStock.java
1 /* $Id: DHStock.java,v 1.1 2001/03/29 08:31:51 cvsbob Exp $ */
2
3 /*
4 * DHStock.java, stock parameters for CipherCore.
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.ciphercore;
27
28 import java.math.BigInteger;
29 import javax.crypto.spec.DHParameterSpec;
30
31 public interface DHStock {
32 public static final BigInteger PRIME_MODULUS = new BigInteger
33 ("9829cf06ca55a0316b02ad3130e98535f25796a2ec1e4767a69f100ed8d2cbe9" +
34 "9c83606a814e962d9ebd636dc2b59613ad3c62376c227894ad82b5df2d15edeb" +
35 "997e799d0ee1c7d85ed3e08be283062e463ac43e4ccc0358150b87362b1c40fb" +
36 "4fb51b7b35db6cd7cbc19380919336aa9f842848814b7db2334b50f8a4c5b90d",
37 16);
38 public static final BigInteger BASE_GENERATOR = new BigInteger
39 ("582f23ac98c3dbc9d524cc2fd6b9d303c43129663c060574b21be3128d91e737" +
40 "59a40d58cbf3872dfd319d9c1782082cdefb498d9fec6bc3ed9ccf4962369437" +
41 "e949bd2ef60a8d715b894d99048d0907d5076ab32f51e9ea97403b7fc4b8363d" +
42 "91f9026cd12bf7e7bf4a5a603194642c2aaa261c2159f15092c012a524e48b56",
43 16);
44 public static final DHParameterSpec PARAMS =
45 new DHParameterSpec( PRIME_MODULUS, BASE_GENERATOR );
46 }