constants.h

Go to the documentation of this file.
00001 /*
00002  * Copyright (C) 2014  Internet Systems Consortium, Inc. ("ISC")
00003  *
00004  * Permission to use, copy, modify, and/or distribute this software for any
00005  * purpose with or without fee is hereby granted, provided that the above
00006  * copyright notice and this permission notice appear in all copies.
00007  *
00008  * THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
00009  * REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
00010  * AND FITNESS.  IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
00011  * INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
00012  * LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
00013  * OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
00014  * PERFORMANCE OF THIS SOFTWARE.
00015  */
00016 
00017 /* $Id$ */
00018 
00019 #ifndef PK11_CONSTANTS_H
00020 #define PK11_CONSTANTS_H 1
00021 
00022 /*! \file pk11/constants.h */
00023 
00024 /*%
00025  * Static arrays of data used for key template initalization
00026  */
00027 #ifdef WANT_ECC_CURVES
00028 static CK_BYTE pk11_ecc_prime256v1[] = {
00029         0x06, 0x08, 0x2a, 0x86, 0x48, 0xce, 0x3d, 0x03, 0x01, 0x07
00030 };
00031 static CK_BYTE pk11_ecc_secp384r1[] = {
00032         0x06, 0x05, 0x2b, 0x81, 0x04, 0x00, 0x22
00033 };
00034 #endif
00035 
00036 #ifdef WANT_DH_PRIMES
00037 static CK_BYTE pk11_dh_bn2[] = { 2 };
00038 static CK_BYTE pk11_dh_bn768[] = {
00039         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
00040         0xc9, 0x0f, 0xda, 0xa2, 0x21, 0x68, 0xc2, 0x34,
00041         0xc4, 0xc6, 0x62, 0x8b, 0x80, 0xdc, 0x1c, 0xd1,
00042         0x29, 0x02, 0x4e, 0x08, 0x8a, 0x67, 0xcc, 0x74,
00043         0x02, 0x0b, 0xbe, 0xa6, 0x3b, 0x13, 0x9b, 0x22,
00044         0x51, 0x4a, 0x08, 0x79, 0x8e, 0x34, 0x04, 0xdd,
00045         0xef, 0x95, 0x19, 0xb3, 0xcd, 0x3a, 0x43, 0x1b,
00046         0x30, 0x2b, 0x0a, 0x6d, 0xf2, 0x5f, 0x14, 0x37,
00047         0x4f, 0xe1, 0x35, 0x6d, 0x6d, 0x51, 0xc2, 0x45,
00048         0xe4, 0x85, 0xb5, 0x76, 0x62, 0x5e, 0x7e, 0xc6,
00049         0xf4, 0x4c, 0x42, 0xe9, 0xa6, 0x3a, 0x36, 0x20,
00050         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
00051 };
00052 static CK_BYTE pk11_dh_bn1024[] = {
00053         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
00054         0xc9, 0x0f, 0xda, 0xa2, 0x21, 0x68, 0xc2, 0x34,
00055         0xc4, 0xc6, 0x62, 0x8b, 0x80, 0xdc, 0x1c, 0xd1,
00056         0x29, 0x02, 0x4e, 0x08, 0x8a, 0x67, 0xcc, 0x74,
00057         0x02, 0x0b, 0xbe, 0xa6, 0x3b, 0x13, 0x9b, 0x22,
00058         0x51, 0x4a, 0x08, 0x79, 0x8e, 0x34, 0x04, 0xdd,
00059         0xef, 0x95, 0x19, 0xb3, 0xcd, 0x3a, 0x43, 0x1b,
00060         0x30, 0x2b, 0x0a, 0x6d, 0xf2, 0x5f, 0x14, 0x37,
00061         0x4f, 0xe1, 0x35, 0x6d, 0x6d, 0x51, 0xc2, 0x45,
00062         0xe4, 0x85, 0xb5, 0x76, 0x62, 0x5e, 0x7e, 0xc6,
00063         0xf4, 0x4c, 0x42, 0xe9, 0xa6, 0x37, 0xed, 0x6b,
00064         0x0b, 0xff, 0x5c, 0xb6, 0xf4, 0x06, 0xb7, 0xed,
00065         0xee, 0x38, 0x6b, 0xfb, 0x5a, 0x89, 0x9f, 0xa5,
00066         0xae, 0x9f, 0x24, 0x11, 0x7c, 0x4b, 0x1f, 0xe6,
00067         0x49, 0x28, 0x66, 0x51, 0xec, 0xe6, 0x53, 0x81,
00068         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
00069 };
00070 static CK_BYTE pk11_dh_bn1536[] = {
00071         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff,
00072         0xc9, 0x0f, 0xda, 0xa2, 0x21, 0x68, 0xc2, 0x34,
00073         0xc4, 0xc6, 0x62, 0x8b, 0x80, 0xdc, 0x1c, 0xd1,
00074         0x29, 0x02, 0x4e, 0x08, 0x8a, 0x67, 0xcc, 0x74,
00075         0x02, 0x0b, 0xbe, 0xa6, 0x3b, 0x13, 0x9b, 0x22,
00076         0x51, 0x4a, 0x08, 0x79, 0x8e, 0x34, 0x04, 0xdd,
00077         0xef, 0x95, 0x19, 0xb3, 0xcd, 0x3a, 0x43, 0x1b,
00078         0x30, 0x2b, 0x0a, 0x6d, 0xf2, 0x5f, 0x14, 0x37,
00079         0x4f, 0xe1, 0x35, 0x6d, 0x6d, 0x51, 0xc2, 0x45,
00080         0xe4, 0x85, 0xb5, 0x76, 0x62, 0x5e, 0x7e, 0xc6,
00081         0xf4, 0x4c, 0x42, 0xe9, 0xa6, 0x37, 0xed, 0x6b,
00082         0x0b, 0xff, 0x5c, 0xb6, 0xf4, 0x06, 0xb7, 0xed,
00083         0xee, 0x38, 0x6b, 0xfb, 0x5a, 0x89, 0x9f, 0xa5,
00084         0xae, 0x9f, 0x24, 0x11, 0x7c, 0x4b, 0x1f, 0xe6,
00085         0x49, 0x28, 0x66, 0x51, 0xec, 0xe4, 0x5b, 0x3d,
00086         0xc2, 0x00, 0x7c, 0xb8, 0xa1, 0x63, 0xbf, 0x05,
00087         0x98, 0xda, 0x48, 0x36, 0x1c, 0x55, 0xd3, 0x9a,
00088         0x69, 0x16, 0x3f, 0xa8, 0xfd, 0x24, 0xcf, 0x5f,
00089         0x83, 0x65, 0x5d, 0x23, 0xdc, 0xa3, 0xad, 0x96,
00090         0x1c, 0x62, 0xf3, 0x56, 0x20, 0x85, 0x52, 0xbb,
00091         0x9e, 0xd5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6d,
00092         0x67, 0x0c, 0x35, 0x4e, 0x4a, 0xbc, 0x98, 0x04,
00093         0xf1, 0x74, 0x6c, 0x08, 0xca, 0x23, 0x73, 0x27,
00094         0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff, 0xff
00095 };
00096 #endif
00097 
00098 #ifdef WANT_GOST_PARAMS
00099 static CK_BYTE pk11_gost_a_paramset[] = {
00100         0x06, 0x07, 0x2a, 0x85, 0x03, 0x02, 0x02, 0x23, 0x01
00101 };
00102 static CK_BYTE pk11_gost_paramset[] = {
00103         0x06, 0x07, 0x2a, 0x85, 0x03, 0x02, 0x02, 0x1e, 0x01
00104 };
00105 #endif
00106 
00107 #endif /* PK11_CONSTANTS_H */

Generated on Tue Apr 28 17:41:04 2015 by Doxygen 1.5.4 for BIND9 Internals 9.11.0pre-alpha