Fix CVE-2017-6891 in minitasn1 code
[platform/upstream/gnutls.git] / src / crywrap / primes.h
1 /* primes.h -- initial DH primes for CryWrap
2  *
3  * Copyright (C) 2003 Gergely Nagy <algernon@bonehunter.rulez.org>
4  * Copyright (C) 2011 Nikos Mavrogiannopoulos
5  *
6  * This file is part of CryWrap.
7  *
8  * CryWrap is free software; you can redistribute it and/or modify
9  * it under the terms of the GNU General Public License as published by
10  * the Free Software Foundation, either version 3 of the License, or
11  * (at your option) any later version.
12  *
13  * CryWrap is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  * GNU General Public License for more details.
17  *
18  * You should have received a copy of the GNU General Public License
19  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20  */
21
22 /** @file primes.h
23  * Initial DH primes for CryWrap.
24  *
25  * In order to speed up the startup time, CryWrap does not generate a
26  * new DH prime upon every startup, but only when it receives a
27  * SIGHUP.
28  */
29
30 #ifndef _CRYWRAP_PRIMES_H
31 #define _CRYWRAP_PRIMES_H
32
33 /** Initial DH primes, 1024 bits.
34  */
35 static char _crywrap_prime_dh_1024[] = "-----BEGIN DH PARAMETERS-----\n"
36     "MIGHAoGBAO6vCrmts43WnDP4CvqPxehgcmGHdf88C56iMUycJWV21nTfdJbqgdM4\n"
37     "O0gT1pLG4ODV2OJQuYvkjklcHWCJ2tFdx9e0YVTWts6O9K1psV1JglWbKXvPGIXF\n"
38     "KfVmZg5X7GjtvDwFcmzAL9TL9Jduqpr9UTj+g3ZDW5/GHS/A6wbjAgEC\n"
39     "-----END DH PARAMETERS-----\n";
40
41 #endif