xref: /illumos-gate/usr/src/lib/gss_mechs/mech_dh/dh640/dh640.c (revision 7a6d80f1660abd4755c68cbd094d4a914681d26e)
1 /*
2  * CDDL HEADER START
3  *
4  * The contents of this file are subject to the terms of the
5  * Common Development and Distribution License, Version 1.0 only
6  * (the "License").  You may not use this file except in compliance
7  * with the License.
8  *
9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10  * or http://www.opensolaris.org/os/licensing.
11  * See the License for the specific language governing permissions
12  * and limitations under the License.
13  *
14  * When distributing Covered Code, include this CDDL HEADER in each
15  * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16  * If applicable, add the following below this CDDL HEADER, with the
17  * fields enclosed by brackets "[]" replaced with your own identifying
18  * information: Portions Copyright [yyyy] [name of copyright owner]
19  *
20  * CDDL HEADER END
21  */
22 /*
23  *	dh640.c
24  *
25  *	Copyright (c) 1997, by Sun Microsystems, Inc.
26  *	All rights reserved.
27  */
28 
29 #include "dh_gssapi.h"
30 
31 static gss_OID_desc OID = {9, "\053\006\004\001\052\002\032\002\004" };
32 static char *MODULUS = 	"D63C7139E1F148AB6AF2DC8BE400087D"
33 			"65E16E007BEC44E4F46621730165C751"
34 			"8DDC6255AE10F52FC42270F7CF1412E0"
35 			"62687B40387455E51D995A8360DB3DC8"
36 			"5002F72379D3537E97D2B1F4A71FC5DB";
37 
38 static int ROOT = 2;
39 static int KEYLEN = 640;
40 static int ALGTYPE = 0;
41 #define	HEX_KEY_BYTES  160
42 
43 #include "../dh_common/dh_template.c"
44 
45 #include "../dh_common/dh_nsl_tmpl.c"
46