blob: 233b1f20031796af2b0367706b78253c0606ed98 [file] [log] [blame]
Paul Bakker5121ce52009-01-03 21:22:43 +00001/**
2 * \file dhm.h
Paul Bakkere0ccd0a2009-01-04 16:27:10 +00003 *
Rose Zadik41ad0822018-01-26 10:54:57 +00004 * \brief Diffie-Hellman-Merkle key exchange.
5 *
6 * <em>RFC-3526: More Modular Exponential (MODP) Diffie-Hellman groups for
7 * Internet Key Exchange (IKE)</em> defines a number of standardized
8 * Diffie-Hellman groups for IKE.
9 *
10 * <em>RFC-5114: Additional Diffie-Hellman Groups for Use with IETF
11 * Standards</em> defines a number of standardized Diffie-Hellman
12 * groups that can be used.
Paul Bakker37ca75d2011-01-06 12:28:03 +000013 *
Jaeden Amero784de592018-01-26 17:52:01 +000014 * \warning The security of the DHM key exchange relies on the proper choice
15 * of prime modulus - optimally, it should be a safe prime. The usage
16 * of non-safe primes both decreases the difficulty of the underlying
17 * discrete logarithm problem and can lead to small subgroup attacks
18 * leaking private exponent bits when invalid public keys are used
19 * and not detected. This is especially relevant if the same DHM
20 * parameters are reused for multiple key exchanges as in static DHM,
21 * while the criticality of small-subgroup attacks is lower for
22 * ephemeral DHM.
23 *
24 * \warning For performance reasons, the code does neither perform primality
25 * nor safe primality tests, nor the expensive checks for invalid
26 * subgroups. Moreover, even if these were performed, non-standardized
27 * primes cannot be trusted because of the possibility of backdoors
28 * that can't be effectively checked for.
29 *
30 * \warning Diffie-Hellman-Merkle is therefore a security risk when not using
31 * standardized primes generated using a trustworthy ("nothing up
32 * my sleeve") method, such as the RFC 3526 / 7919 primes. In the TLS
33 * protocol, DH parameters need to be negotiated, so using the default
34 * primes systematically is not always an option. If possible, use
35 * Elliptic Curve Diffie-Hellman (ECDH), which has better performance,
36 * and for which the TLS protocol mandates the use of standard
37 * parameters.
38 *
Darryl Greena40a1012018-01-05 15:33:17 +000039 */
40/*
Bence Szépkúti44bfbe32020-08-19 16:54:51 +020041 * Copyright The Mbed TLS Contributors
Bence Szépkúti4e9f7122020-06-05 13:02:18 +020042 * SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
43 *
44 * This file is provided under the Apache License 2.0, or the
45 * GNU General Public License v2.0 or later.
46 *
47 * **********
48 * Apache License 2.0:
Manuel Pégourié-Gonnard37ff1402015-09-04 14:21:07 +020049 *
50 * Licensed under the Apache License, Version 2.0 (the "License"); you may
51 * not use this file except in compliance with the License.
52 * You may obtain a copy of the License at
53 *
54 * http://www.apache.org/licenses/LICENSE-2.0
55 *
56 * Unless required by applicable law or agreed to in writing, software
57 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
58 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
59 * See the License for the specific language governing permissions and
60 * limitations under the License.
Paul Bakkerb96f1542010-07-18 20:36:00 +000061 *
Bence Szépkúti4e9f7122020-06-05 13:02:18 +020062 * **********
63 *
64 * **********
65 * GNU General Public License v2.0 or later:
66 *
67 * This program is free software; you can redistribute it and/or modify
68 * it under the terms of the GNU General Public License as published by
69 * the Free Software Foundation; either version 2 of the License, or
70 * (at your option) any later version.
71 *
72 * This program is distributed in the hope that it will be useful,
73 * but WITHOUT ANY WARRANTY; without even the implied warranty of
74 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
75 * GNU General Public License for more details.
76 *
77 * You should have received a copy of the GNU General Public License along
78 * with this program; if not, write to the Free Software Foundation, Inc.,
79 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
80 *
81 * **********
Paul Bakker5121ce52009-01-03 21:22:43 +000082 */
Rose Zadik41ad0822018-01-26 10:54:57 +000083
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020084#ifndef MBEDTLS_DHM_H
85#define MBEDTLS_DHM_H
Paul Bakker5121ce52009-01-03 21:22:43 +000086
Reuven Levin1f35ca92017-12-07 10:09:32 +000087#if !defined(MBEDTLS_CONFIG_FILE)
88#include "config.h"
89#else
90#include MBEDTLS_CONFIG_FILE
91#endif
Paul Bakker314052f2011-08-15 09:07:52 +000092#include "bignum.h"
Reuven Levin1f35ca92017-12-07 10:09:32 +000093#if !defined(MBEDTLS_DHM_ALT)
94
Paul Bakkerf3b86c12011-01-27 15:24:17 +000095/*
96 * DHM Error codes
97 */
Rose Zadik41ad0822018-01-26 10:54:57 +000098#define MBEDTLS_ERR_DHM_BAD_INPUT_DATA -0x3080 /**< Bad input parameters. */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +020099#define MBEDTLS_ERR_DHM_READ_PARAMS_FAILED -0x3100 /**< Reading of the DHM parameters failed. */
100#define MBEDTLS_ERR_DHM_MAKE_PARAMS_FAILED -0x3180 /**< Making of the DHM parameters failed. */
101#define MBEDTLS_ERR_DHM_READ_PUBLIC_FAILED -0x3200 /**< Reading of the public values failed. */
102#define MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED -0x3280 /**< Making of the public value failed. */
103#define MBEDTLS_ERR_DHM_CALC_SECRET_FAILED -0x3300 /**< Calculation of the DHM secret failed. */
104#define MBEDTLS_ERR_DHM_INVALID_FORMAT -0x3380 /**< The ASN.1 data is not formatted correctly. */
Manuel Pégourié-Gonnard6a8ca332015-05-28 09:33:39 +0200105#define MBEDTLS_ERR_DHM_ALLOC_FAILED -0x3400 /**< Allocation of memory failed. */
Rose Zadik41ad0822018-01-26 10:54:57 +0000106#define MBEDTLS_ERR_DHM_FILE_IO_ERROR -0x3480 /**< Read or write of file failed. */
Gilles Peskine7ecab3d2018-01-26 17:56:38 +0100107#define MBEDTLS_ERR_DHM_HW_ACCEL_FAILED -0x3500 /**< DHM hardware accelerator failed. */
Jaeden Amero2acbf172018-01-26 20:57:38 +0000108#define MBEDTLS_ERR_DHM_SET_GROUP_FAILED -0x3580 /**< Setting the modulus and generator failed. */
Paul Bakker29b64762012-09-25 09:36:44 +0000109
Paul Bakker407a0da2013-06-27 14:29:21 +0200110#ifdef __cplusplus
111extern "C" {
112#endif
113
Paul Bakker29b64762012-09-25 09:36:44 +0000114/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000115 * \brief The DHM context structure.
Paul Bakkerf3b86c12011-01-27 15:24:17 +0000116 */
Paul Bakker5121ce52009-01-03 21:22:43 +0000117typedef struct
118{
Rose Zadik41ad0822018-01-26 10:54:57 +0000119 size_t len; /*!< The size of \p P in Bytes. */
120 mbedtls_mpi P; /*!< The prime modulus. */
121 mbedtls_mpi G; /*!< The generator. */
122 mbedtls_mpi X; /*!< Our secret value. */
123 mbedtls_mpi GX; /*!< Our public key = \c G^X mod \c P. */
124 mbedtls_mpi GY; /*!< The public key of the peer = \c G^Y mod \c P. */
125 mbedtls_mpi K; /*!< The shared secret = \c G^(XY) mod \c P. */
126 mbedtls_mpi RP; /*!< The cached value = \c R^2 mod \c P. */
127 mbedtls_mpi Vi; /*!< The blinding value. */
128 mbedtls_mpi Vf; /*!< The unblinding value. */
129 mbedtls_mpi pX; /*!< The previous \c X. */
Paul Bakker5121ce52009-01-03 21:22:43 +0000130}
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200131mbedtls_dhm_context;
Paul Bakker5121ce52009-01-03 21:22:43 +0000132
Paul Bakker5121ce52009-01-03 21:22:43 +0000133/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000134 * \brief This function initializes the DHM context.
Paul Bakker8f870b02014-06-20 13:32:38 +0200135 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000136 * \param ctx The DHM context to initialize.
Paul Bakker8f870b02014-06-20 13:32:38 +0200137 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200138void mbedtls_dhm_init( mbedtls_dhm_context *ctx );
Paul Bakker8f870b02014-06-20 13:32:38 +0200139
140/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000141 * \brief This function parses the ServerKeyExchange parameters.
Paul Bakker5121ce52009-01-03 21:22:43 +0000142 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000143 * \param ctx The DHM context.
Hanno Beckerf240ea02017-10-02 15:09:14 +0100144 * \param p On input, *p must be the start of the input buffer.
145 * On output, *p is updated to point to the end of the data
146 * that has been read. On success, this is the first byte
147 * past the end of the ServerKeyExchange parameters.
148 * On error, this is the point at which an error has been
149 * detected, which is usually not useful except to debug
150 * failures.
Rose Zadik41ad0822018-01-26 10:54:57 +0000151 * \param end The end of the input buffer.
Paul Bakker5121ce52009-01-03 21:22:43 +0000152 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000153 * \return \c 0 on success, or an \c MBEDTLS_ERR_DHM_XXX error code
154 * on failure.
Paul Bakker5121ce52009-01-03 21:22:43 +0000155 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200156int mbedtls_dhm_read_params( mbedtls_dhm_context *ctx,
Paul Bakker5121ce52009-01-03 21:22:43 +0000157 unsigned char **p,
Paul Bakkerff60ee62010-03-16 21:09:09 +0000158 const unsigned char *end );
Paul Bakker5121ce52009-01-03 21:22:43 +0000159
160/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000161 * \brief This function sets up and writes the ServerKeyExchange
162 * parameters.
Paul Bakker5121ce52009-01-03 21:22:43 +0000163 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000164 * \param ctx The DHM context.
165 * \param x_size The private value size in Bytes.
166 * \param olen The number of characters written.
167 * \param output The destination buffer.
168 * \param f_rng The RNG function.
169 * \param p_rng The RNG parameter.
Paul Bakker5121ce52009-01-03 21:22:43 +0000170 *
Hanno Beckere7643242017-09-28 10:33:11 +0100171 * \note The destination buffer must be large enough to hold
Hanno Becker70da2c52017-10-02 15:02:59 +0100172 * the reduced binary presentation of the modulus, the generator
173 * and the public key, each wrapped with a 2-byte length field.
174 * It is the responsibility of the caller to ensure that enough
175 * space is available. Refer to \c mbedtls_mpi_size to computing
176 * the byte-size of an MPI.
Hanno Beckere7643242017-09-28 10:33:11 +0100177 *
Jaeden Amero9564e972018-01-30 16:56:13 +0000178 * \note This function assumes that \c ctx->P and \c ctx->G
Hanno Becker8880e752017-10-04 13:15:08 +0100179 * have already been properly set. For that, use
Jaeden Amero9564e972018-01-30 16:56:13 +0000180 * mbedtls_dhm_set_group() below in conjunction with
181 * mbedtls_mpi_read_binary() and mbedtls_mpi_read_string().
Paul Bakker5121ce52009-01-03 21:22:43 +0000182 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000183 * \return \c 0 on success, or an \c MBEDTLS_ERR_DHM_XXX error code
184 * on failure.
Paul Bakker5121ce52009-01-03 21:22:43 +0000185 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200186int mbedtls_dhm_make_params( mbedtls_dhm_context *ctx, int x_size,
Paul Bakker23986e52011-04-24 08:57:21 +0000187 unsigned char *output, size_t *olen,
Paul Bakkera3d195c2011-11-27 21:07:34 +0000188 int (*f_rng)(void *, unsigned char *, size_t),
189 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000190
191/**
Hanno Becker8880e752017-10-04 13:15:08 +0100192 * \brief Set prime modulus and generator
193 *
Jaeden Amero9564e972018-01-30 16:56:13 +0000194 * \param ctx The DHM context.
195 * \param P The MPI holding DHM prime modulus.
196 * \param G The MPI holding DHM generator.
Hanno Becker8880e752017-10-04 13:15:08 +0100197 *
198 * \note This function can be used to set P, G
199 * in preparation for \c mbedtls_dhm_make_params.
200 *
Jaeden Amero9564e972018-01-30 16:56:13 +0000201 * \return \c 0 if successful, or an \c MBEDTLS_ERR_DHM_XXX error code
202 * on failure.
Hanno Becker8880e752017-10-04 13:15:08 +0100203 */
204int mbedtls_dhm_set_group( mbedtls_dhm_context *ctx,
205 const mbedtls_mpi *P,
206 const mbedtls_mpi *G );
207
208/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000209 * \brief This function imports the public value G^Y of the peer.
Paul Bakker5121ce52009-01-03 21:22:43 +0000210 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000211 * \param ctx The DHM context.
212 * \param input The input buffer.
213 * \param ilen The size of the input buffer.
Paul Bakker5121ce52009-01-03 21:22:43 +0000214 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000215 * \return \c 0 on success, or an \c MBEDTLS_ERR_DHM_XXX error code
216 * on failure.
Paul Bakker5121ce52009-01-03 21:22:43 +0000217 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200218int mbedtls_dhm_read_public( mbedtls_dhm_context *ctx,
Paul Bakker23986e52011-04-24 08:57:21 +0000219 const unsigned char *input, size_t ilen );
Paul Bakker5121ce52009-01-03 21:22:43 +0000220
221/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000222 * \brief This function creates its own private value \c X and
223 * exports \c G^X.
Paul Bakker5121ce52009-01-03 21:22:43 +0000224 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000225 * \param ctx The DHM context.
226 * \param x_size The private value size in Bytes.
227 * \param output The destination buffer.
228 * \param olen The length of the destination buffer. Must be at least
229 equal to ctx->len (the size of \c P).
230 * \param f_rng The RNG function.
231 * \param p_rng The RNG parameter.
Paul Bakker5121ce52009-01-03 21:22:43 +0000232 *
Hanno Beckere7643242017-09-28 10:33:11 +0100233 * \note The destination buffer will always be fully written
234 * so as to contain a big-endian presentation of G^X mod P.
235 * If it is larger than ctx->len, it will accordingly be
236 * padded with zero-bytes in the beginning.
237 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000238 * \return \c 0 on success, or an \c MBEDTLS_ERR_DHM_XXX error code
239 * on failure.
Paul Bakker5121ce52009-01-03 21:22:43 +0000240 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200241int mbedtls_dhm_make_public( mbedtls_dhm_context *ctx, int x_size,
Paul Bakker23986e52011-04-24 08:57:21 +0000242 unsigned char *output, size_t olen,
Paul Bakkera3d195c2011-11-27 21:07:34 +0000243 int (*f_rng)(void *, unsigned char *, size_t),
244 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000245
246/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000247 * \brief This function derives and exports the shared secret
248 * \c (G^Y)^X mod \c P.
Paul Bakker5121ce52009-01-03 21:22:43 +0000249 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000250 * \param ctx The DHM context.
251 * \param output The destination buffer.
Jaeden Amero9564e972018-01-30 16:56:13 +0000252 * \param output_size The size of the destination buffer. Must be at least
253 * the size of ctx->len.
Rose Zadik41ad0822018-01-26 10:54:57 +0000254 * \param olen On exit, holds the actual number of Bytes written.
255 * \param f_rng The RNG function, for blinding purposes.
256 * \param p_rng The RNG parameter.
Paul Bakker5121ce52009-01-03 21:22:43 +0000257 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000258 * \return \c 0 on success, or an \c MBEDTLS_ERR_DHM_XXX error code
259 * on failure.
Manuel Pégourié-Gonnard143b5022013-09-04 16:29:59 +0200260 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000261 * \note If non-NULL, \p f_rng is used to blind the input as
262 * a countermeasure against timing attacks. Blinding is used
263 * only if our secret value \p X is re-used and omitted
264 * otherwise. Therefore, we recommend always passing a
265 * non-NULL \p f_rng argument.
Paul Bakker5121ce52009-01-03 21:22:43 +0000266 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200267int mbedtls_dhm_calc_secret( mbedtls_dhm_context *ctx,
Manuel Pégourié-Gonnard33352052015-06-02 16:17:08 +0100268 unsigned char *output, size_t output_size, size_t *olen,
Manuel Pégourié-Gonnard2d627642013-09-04 14:22:07 +0200269 int (*f_rng)(void *, unsigned char *, size_t),
270 void *p_rng );
Paul Bakker5121ce52009-01-03 21:22:43 +0000271
Paul Bakker9a736322012-11-14 12:39:52 +0000272/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000273 * \brief This function frees and clears the components of a DHM key.
Paul Bakker8f870b02014-06-20 13:32:38 +0200274 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000275 * \param ctx The DHM context to free and clear.
Paul Bakker5121ce52009-01-03 21:22:43 +0000276 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200277void mbedtls_dhm_free( mbedtls_dhm_context *ctx );
Paul Bakker5121ce52009-01-03 21:22:43 +0000278
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200279#if defined(MBEDTLS_ASN1_PARSE_C)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200280/** \ingroup x509_module */
281/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000282 * \brief This function parses DHM parameters in PEM or DER format.
Paul Bakker40ce79f2013-09-15 17:43:54 +0200283 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000284 * \param dhm The DHM context to initialize.
285 * \param dhmin The input buffer.
286 * \param dhminlen The size of the buffer, including the terminating null
287 * Byte for PEM data.
Paul Bakker40ce79f2013-09-15 17:43:54 +0200288 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000289 * \return \c 0 on success, or a specific DHM or PEM error code
290 * on failure.
Paul Bakker40ce79f2013-09-15 17:43:54 +0200291 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200292int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin,
Paul Bakker40ce79f2013-09-15 17:43:54 +0200293 size_t dhminlen );
294
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200295#if defined(MBEDTLS_FS_IO)
Paul Bakker40ce79f2013-09-15 17:43:54 +0200296/** \ingroup x509_module */
297/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000298 * \brief This function loads and parses DHM parameters from a file.
Paul Bakker40ce79f2013-09-15 17:43:54 +0200299 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000300 * \param dhm The DHM context to load the parameters to.
301 * \param path The filename to read the DHM parameters from.
Paul Bakker40ce79f2013-09-15 17:43:54 +0200302 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000303 * \return \c 0 on success, or a specific DHM or PEM error code
304 * on failure.
Paul Bakker40ce79f2013-09-15 17:43:54 +0200305 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200306int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path );
307#endif /* MBEDTLS_FS_IO */
308#endif /* MBEDTLS_ASN1_PARSE_C */
nirekh01d569ecf2018-01-09 16:43:21 +0000309
310#ifdef __cplusplus
311}
312#endif
313
314#else /* MBEDTLS_DHM_ALT */
Reuven Levin1f35ca92017-12-07 10:09:32 +0000315#include "dhm_alt.h"
316#endif /* MBEDTLS_DHM_ALT */
Paul Bakker40ce79f2013-09-15 17:43:54 +0200317
nirekh01d569ecf2018-01-09 16:43:21 +0000318#ifdef __cplusplus
319extern "C" {
320#endif
321
Paul Bakker5121ce52009-01-03 21:22:43 +0000322/**
Rose Zadik41ad0822018-01-26 10:54:57 +0000323 * \brief The DMH checkup routine.
Paul Bakker5121ce52009-01-03 21:22:43 +0000324 *
Rose Zadik41ad0822018-01-26 10:54:57 +0000325 * \return \c 0 on success, or \c 1 on failure.
Paul Bakker5121ce52009-01-03 21:22:43 +0000326 */
Manuel Pégourié-Gonnard2cf5a7c2015-04-08 12:49:31 +0200327int mbedtls_dhm_self_test( int verbose );
Paul Bakker5121ce52009-01-03 21:22:43 +0000328
329#ifdef __cplusplus
330}
331#endif
332
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100333/**
334 * RFC 3526, RFC 5114 and RFC 7919 standardize a number of
335 * Diffie-Hellman groups, some of which are included here
336 * for use within the SSL/TLS module and the user's convenience
337 * when configuring the Diffie-Hellman parameters by hand
338 * through \c mbedtls_ssl_conf_dh_param.
339 *
Jaeden Amero9564e972018-01-30 16:56:13 +0000340 * The following lists the source of the above groups in the standards:
341 * - RFC 5114 section 2.2: 2048-bit MODP Group with 224-bit Prime Order Subgroup
342 * - RFC 3526 section 3: 2048-bit MODP Group
343 * - RFC 3526 section 4: 3072-bit MODP Group
344 * - RFC 3526 section 5: 4096-bit MODP Group
345 * - RFC 7919 section A.1: ffdhe2048
346 * - RFC 7919 section A.2: ffdhe3072
347 * - RFC 7919 section A.3: ffdhe4096
348 * - RFC 7919 section A.4: ffdhe6144
349 * - RFC 7919 section A.5: ffdhe8192
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100350 *
351 * The constants with suffix "_p" denote the chosen prime moduli, while
352 * the constants with suffix "_g" denote the chosen generator
353 * of the associated prime field.
354 *
355 * The constants further suffixed with "_bin" are provided in binary format,
356 * while all other constants represent null-terminated strings holding the
357 * hexadecimal presentation of the respective numbers.
358 *
359 * The primes from RFC 3526 and RFC 7919 have been generating by the following
360 * trust-worthy procedure:
361 * - Fix N in { 2048, 3072, 4096, 6144, 8192 } and consider the N-bit number
362 * the first and last 64 bits are all 1, and the remaining N - 128 bits of
363 * which are 0x7ff...ff.
364 * - Add the smallest multiple of the first N - 129 bits of the binary expansion
365 * of pi (for RFC 5236) or e (for RFC 7919) to this intermediate bit-string
366 * such that the resulting integer is a safe-prime.
367 * - The result is the respective RFC 3526 / 7919 prime, and the corresponding
368 * generator is always chosen to be 2 (which is a square for these prime,
369 * hence the corresponding subgroup has order (p-1)/2 and avoids leaking a
370 * bit in the private exponent).
371 *
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100372 */
373
374#if !defined(MBEDTLS_DEPRECATED_REMOVED)
375
376#if defined(MBEDTLS_DEPRECATED_WARNING)
377#define MBEDTLS_DEPRECATED __attribute__((deprecated))
Jaeden Amero784de592018-01-26 17:52:01 +0000378MBEDTLS_DEPRECATED typedef char const * mbedtls_deprecated_constant_t;
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100379#define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) \
Jaeden Amero784de592018-01-26 17:52:01 +0000380 ( (mbedtls_deprecated_constant_t) ( VAL ) )
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100381#else
382#define MBEDTLS_DEPRECATED_STRING_CONSTANT( VAL ) VAL
383#endif /* ! MBEDTLS_DEPRECATED_WARNING */
384
385/**
386 * \warning The origin of the primes in RFC 5114 is not documented and
387 * their use therefore constitutes a security risk!
388 *
389 * \deprecated The hex-encoded primes from RFC 5114 are deprecated and are
390 * likely to be removed in a future version of the library without
391 * replacement.
392 */
393
Jaeden Amero9564e972018-01-30 16:56:13 +0000394/**
395 * The hexadecimal presentation of the prime underlying the
396 * 2048-bit MODP Group with 224-bit Prime Order Subgroup, as defined
397 * in <em>RFC-5114: Additional Diffie-Hellman Groups for Use with
398 * IETF Standards</em>.
399 */
Jaeden Amero129f5082018-02-08 14:25:36 +0000400#define MBEDTLS_DHM_RFC5114_MODP_2048_P \
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100401 MBEDTLS_DEPRECATED_STRING_CONSTANT( \
402 "AD107E1E9123A9D0D660FAA79559C51FA20D64E5683B9FD1" \
403 "B54B1597B61D0A75E6FA141DF95A56DBAF9A3C407BA1DF15" \
404 "EB3D688A309C180E1DE6B85A1274A0A66D3F8152AD6AC212" \
405 "9037C9EDEFDA4DF8D91E8FEF55B7394B7AD5B7D0B6C12207" \
406 "C9F98D11ED34DBF6C6BA0B2C8BBC27BE6A00E0A0B9C49708" \
407 "B3BF8A317091883681286130BC8985DB1602E714415D9330" \
408 "278273C7DE31EFDC7310F7121FD5A07415987D9ADC0A486D" \
409 "CDF93ACC44328387315D75E198C641A480CD86A1B9E587E8" \
410 "BE60E69CC928B2B9C52172E413042E9B23F10B0E16E79763" \
411 "C9B53DCF4BA80A29E3FB73C16B8E75B97EF363E2FFA31F71" \
412 "CF9DE5384E71B81C0AC4DFFE0C10E64F" )
413
Jaeden Amero9564e972018-01-30 16:56:13 +0000414/**
415 * The hexadecimal presentation of the chosen generator of the 2048-bit MODP
416 * Group with 224-bit Prime Order Subgroup, as defined in <em>RFC-5114:
417 * Additional Diffie-Hellman Groups for Use with IETF Standards</em>.
418 */
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100419#define MBEDTLS_DHM_RFC5114_MODP_2048_G \
420 MBEDTLS_DEPRECATED_STRING_CONSTANT( \
421 "AC4032EF4F2D9AE39DF30B5C8FFDAC506CDEBE7B89998CAF" \
422 "74866A08CFE4FFE3A6824A4E10B9A6F0DD921F01A70C4AFA" \
423 "AB739D7700C29F52C57DB17C620A8652BE5E9001A8D66AD7" \
424 "C17669101999024AF4D027275AC1348BB8A762D0521BC98A" \
425 "E247150422EA1ED409939D54DA7460CDB5F6C6B250717CBE" \
426 "F180EB34118E98D119529A45D6F834566E3025E316A330EF" \
427 "BB77A86F0C1AB15B051AE3D428C8F8ACB70A8137150B8EEB" \
428 "10E183EDD19963DDD9E263E4770589EF6AA21E7F5F2FF381" \
429 "B539CCE3409D13CD566AFBB48D6C019181E1BCFE94B30269" \
430 "EDFE72FE9B6AA4BD7B5A0F1C71CFFF4C19C418E1F6EC0179" \
431 "81BC087F2A7065B384B890D3191F2BFA" )
432
433/**
Jaeden Amero9564e972018-01-30 16:56:13 +0000434 * The hexadecimal presentation of the prime underlying the 2048-bit MODP
435 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
436 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
437 *
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100438 * \deprecated The hex-encoded primes from RFC 3625 are deprecated and
439 * superseded by the corresponding macros providing them as
440 * binary constants. Their hex-encoded constants are likely
441 * to be removed in a future version of the library.
442 *
443 */
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100444#define MBEDTLS_DHM_RFC3526_MODP_2048_P \
445 MBEDTLS_DEPRECATED_STRING_CONSTANT( \
446 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
447 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
448 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
449 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
450 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
451 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
452 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
453 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
454 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
455 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
456 "15728E5A8AACAA68FFFFFFFFFFFFFFFF" )
457
Jaeden Amero9564e972018-01-30 16:56:13 +0000458/**
459 * The hexadecimal presentation of the chosen generator of the 2048-bit MODP
460 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
461 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
462 */
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100463#define MBEDTLS_DHM_RFC3526_MODP_2048_G \
Hanno Becker5e6b8d72017-10-04 13:41:36 +0100464 MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" )
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100465
Jaeden Amero9564e972018-01-30 16:56:13 +0000466/**
467 * The hexadecimal presentation of the prime underlying the 3072-bit MODP
468 * Group, as defined in <em>RFC-3072: More Modular Exponential (MODP)
469 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
470 */
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100471#define MBEDTLS_DHM_RFC3526_MODP_3072_P \
472 MBEDTLS_DEPRECATED_STRING_CONSTANT( \
473 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
474 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
475 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
476 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
477 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
478 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
479 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
480 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
481 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
482 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
483 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \
484 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \
485 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \
486 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \
487 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \
488 "43DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF" )
489
Jaeden Amero9564e972018-01-30 16:56:13 +0000490/**
491 * The hexadecimal presentation of the chosen generator of the 3072-bit MODP
492 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
493 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
494 */
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100495#define MBEDTLS_DHM_RFC3526_MODP_3072_G \
Hanno Becker5e6b8d72017-10-04 13:41:36 +0100496 MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" )
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100497
Jaeden Amero9564e972018-01-30 16:56:13 +0000498/**
499 * The hexadecimal presentation of the prime underlying the 4096-bit MODP
500 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
501 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
502 */
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100503#define MBEDTLS_DHM_RFC3526_MODP_4096_P \
504 MBEDTLS_DEPRECATED_STRING_CONSTANT( \
505 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \
506 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \
507 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \
508 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \
509 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \
510 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \
511 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \
512 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \
513 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \
514 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \
515 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \
516 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \
517 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \
518 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \
519 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \
520 "43DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D7" \
521 "88719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA" \
522 "2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6" \
523 "287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED" \
524 "1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA9" \
525 "93B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199" \
526 "FFFFFFFFFFFFFFFF" )
527
Jaeden Amero9564e972018-01-30 16:56:13 +0000528/**
529 * The hexadecimal presentation of the chosen generator of the 4096-bit MODP
530 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
531 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
532 */
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100533#define MBEDTLS_DHM_RFC3526_MODP_4096_G \
Hanno Becker5e6b8d72017-10-04 13:41:36 +0100534 MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" )
Hanno Beckere2fcfa82017-10-04 13:12:15 +0100535
536#endif /* MBEDTLS_DEPRECATED_REMOVED */
537
538/*
539 * Trustworthy DHM parameters in binary form
540 */
541
542#define MBEDTLS_DHM_RFC3526_MODP_2048_P_BIN { \
543 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
544 0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \
545 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \
546 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \
547 0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \
548 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \
549 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \
550 0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \
551 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \
552 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \
553 0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \
554 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \
555 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \
556 0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \
557 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \
558 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \
559 0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \
560 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \
561 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \
562 0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \
563 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \
564 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \
565 0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \
566 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \
567 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \
568 0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \
569 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \
570 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \
571 0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \
572 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \
573 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAC, 0xAA, 0x68, \
574 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
575
576#define MBEDTLS_DHM_RFC3526_MODP_2048_G_BIN { 0x02 }
577
578#define MBEDTLS_DHM_RFC3526_MODP_3072_P_BIN { \
579 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
580 0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \
581 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \
582 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \
583 0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \
584 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \
585 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \
586 0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \
587 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \
588 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \
589 0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \
590 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \
591 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \
592 0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \
593 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \
594 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \
595 0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \
596 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \
597 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \
598 0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \
599 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \
600 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \
601 0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \
602 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \
603 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \
604 0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \
605 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \
606 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \
607 0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \
608 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \
609 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, \
610 0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33, \
611 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, \
612 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, \
613 0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D, \
614 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, \
615 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, \
616 0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D, \
617 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, \
618 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, \
619 0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64, \
620 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, \
621 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, \
622 0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2, \
623 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, \
624 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, \
625 0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x3A, 0xD2, 0xCA, \
626 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
627
628#define MBEDTLS_DHM_RFC3526_MODP_3072_G_BIN { 0x02 }
629
630#define MBEDTLS_DHM_RFC3526_MODP_4096_P_BIN { \
631 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
632 0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \
633 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \
634 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \
635 0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \
636 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \
637 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \
638 0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \
639 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \
640 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \
641 0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \
642 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \
643 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \
644 0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \
645 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \
646 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \
647 0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \
648 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \
649 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \
650 0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \
651 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \
652 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \
653 0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \
654 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \
655 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \
656 0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \
657 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \
658 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \
659 0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \
660 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \
661 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, \
662 0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33, \
663 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, \
664 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, \
665 0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D, \
666 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, \
667 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, \
668 0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D, \
669 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, \
670 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, \
671 0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64, \
672 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, \
673 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, \
674 0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2, \
675 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, \
676 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, \
677 0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x21, 0x08, 0x01, \
678 0x1A, 0x72, 0x3C, 0x12, 0xA7, 0x87, 0xE6, 0xD7, \
679 0x88, 0x71, 0x9A, 0x10, 0xBD, 0xBA, 0x5B, 0x26, \
680 0x99, 0xC3, 0x27, 0x18, 0x6A, 0xF4, 0xE2, 0x3C, \
681 0x1A, 0x94, 0x68, 0x34, 0xB6, 0x15, 0x0B, 0xDA, \
682 0x25, 0x83, 0xE9, 0xCA, 0x2A, 0xD4, 0x4C, 0xE8, \
683 0xDB, 0xBB, 0xC2, 0xDB, 0x04, 0xDE, 0x8E, 0xF9, \
684 0x2E, 0x8E, 0xFC, 0x14, 0x1F, 0xBE, 0xCA, 0xA6, \
685 0x28, 0x7C, 0x59, 0x47, 0x4E, 0x6B, 0xC0, 0x5D, \
686 0x99, 0xB2, 0x96, 0x4F, 0xA0, 0x90, 0xC3, 0xA2, \
687 0x23, 0x3B, 0xA1, 0x86, 0x51, 0x5B, 0xE7, 0xED, \
688 0x1F, 0x61, 0x29, 0x70, 0xCE, 0xE2, 0xD7, 0xAF, \
689 0xB8, 0x1B, 0xDD, 0x76, 0x21, 0x70, 0x48, 0x1C, \
690 0xD0, 0x06, 0x91, 0x27, 0xD5, 0xB0, 0x5A, 0xA9, \
691 0x93, 0xB4, 0xEA, 0x98, 0x8D, 0x8F, 0xDD, 0xC1, \
692 0x86, 0xFF, 0xB7, 0xDC, 0x90, 0xA6, 0xC0, 0x8F, \
693 0x4D, 0xF4, 0x35, 0xC9, 0x34, 0x06, 0x31, 0x99, \
694 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
695
696#define MBEDTLS_DHM_RFC3526_MODP_4096_G_BIN { 0x02 }
697
698#define MBEDTLS_DHM_RFC7919_FFDHE2048_P_BIN { \
699 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
700 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
701 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
702 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
703 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
704 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
705 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
706 0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
707 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
708 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
709 0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
710 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
711 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
712 0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
713 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
714 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
715 0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
716 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
717 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
718 0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
719 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
720 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
721 0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
722 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
723 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
724 0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
725 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
726 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
727 0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
728 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
729 0x88, 0x6B, 0x42, 0x38, 0x61, 0x28, 0x5C, 0x97, \
730 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }
731
732#define MBEDTLS_DHM_RFC7919_FFDHE2048_G_BIN { 0x02 }
733
734#define MBEDTLS_DHM_RFC7919_FFDHE3072_P_BIN { \
735 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
736 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
737 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
738 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
739 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
740 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
741 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
742 0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
743 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
744 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
745 0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
746 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
747 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
748 0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
749 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
750 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
751 0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
752 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
753 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
754 0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
755 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
756 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
757 0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
758 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
759 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
760 0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
761 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
762 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
763 0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
764 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
765 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
766 0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
767 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
768 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
769 0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
770 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
771 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
772 0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
773 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
774 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
775 0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
776 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
777 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
778 0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
779 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
780 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
781 0x25, 0xE4, 0x1D, 0x2B, 0x66, 0xC6, 0x2E, 0x37, \
782 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
783
784#define MBEDTLS_DHM_RFC7919_FFDHE3072_G_BIN { 0x02 }
785
786#define MBEDTLS_DHM_RFC7919_FFDHE4096_P_BIN { \
787 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
788 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
789 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
790 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
791 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
792 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
793 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
794 0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
795 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
796 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
797 0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
798 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
799 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
800 0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
801 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
802 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
803 0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
804 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
805 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
806 0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
807 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
808 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
809 0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
810 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
811 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
812 0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
813 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
814 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
815 0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
816 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
817 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
818 0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
819 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
820 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
821 0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
822 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
823 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
824 0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
825 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
826 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
827 0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
828 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
829 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
830 0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
831 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
832 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
833 0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
834 0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
835 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
836 0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
837 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
838 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
839 0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
840 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
841 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
842 0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
843 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
844 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
845 0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
846 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
847 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
848 0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
849 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x65, 0x5F, 0x6A, \
850 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
851
852#define MBEDTLS_DHM_RFC7919_FFDHE4096_G_BIN { 0x02 }
853
854#define MBEDTLS_DHM_RFC7919_FFDHE6144_P_BIN { \
855 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
856 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
857 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
858 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
859 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
860 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
861 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
862 0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
863 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
864 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
865 0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
866 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
867 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
868 0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
869 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
870 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
871 0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
872 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
873 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
874 0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
875 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
876 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
877 0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
878 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
879 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
880 0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
881 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
882 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
883 0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
884 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
885 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
886 0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
887 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
888 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
889 0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
890 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
891 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
892 0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
893 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
894 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
895 0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
896 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
897 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
898 0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
899 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
900 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
901 0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
902 0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
903 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
904 0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
905 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
906 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
907 0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
908 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
909 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
910 0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
911 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
912 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
913 0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
914 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
915 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
916 0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
917 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, \
918 0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, \
919 0x4E, 0x67, 0x7D, 0x2C, 0x38, 0x53, 0x2A, 0x3A, \
920 0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, \
921 0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, \
922 0x91, 0x7B, 0xDD, 0x64, 0xB1, 0xC0, 0xFD, 0x4C, \
923 0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, \
924 0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, \
925 0x9B, 0x1F, 0x5C, 0x3E, 0x4E, 0x46, 0x04, 0x1F, \
926 0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, \
927 0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, \
928 0xB8, 0x55, 0x32, 0x2E, 0xDB, 0x63, 0x40, 0xD8, \
929 0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, \
930 0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, \
931 0x7F, 0xB2, 0x9F, 0x8C, 0x18, 0x30, 0x23, 0xC3, \
932 0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, \
933 0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, \
934 0x94, 0xC6, 0x65, 0x1E, 0x77, 0xCA, 0xF9, 0x92, \
935 0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, \
936 0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, \
937 0x0A, 0xE8, 0xDB, 0x58, 0x47, 0xA6, 0x7C, 0xBE, \
938 0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \
939 0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \
940 0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \
941 0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \
942 0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \
943 0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \
944 0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \
945 0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \
946 0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \
947 0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \
948 0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \
949 0xA4, 0x0E, 0x32, 0x9C, 0xD0, 0xE4, 0x0E, 0x65, \
950 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
951
952#define MBEDTLS_DHM_RFC7919_FFDHE6144_G_BIN { 0x02 }
953
954#define MBEDTLS_DHM_RFC7919_FFDHE8192_P_BIN { \
955 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
956 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
957 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
958 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
959 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
960 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
961 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
962 0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
963 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
964 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
965 0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
966 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
967 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
968 0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
969 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
970 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
971 0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
972 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
973 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
974 0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
975 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
976 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
977 0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
978 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
979 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
980 0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
981 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
982 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
983 0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
984 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
985 0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
986 0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
987 0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
988 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
989 0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
990 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
991 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
992 0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
993 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
994 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
995 0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
996 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
997 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
998 0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
999 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
1000 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
1001 0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
1002 0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
1003 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
1004 0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
1005 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
1006 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
1007 0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
1008 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
1009 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
1010 0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
1011 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
1012 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
1013 0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
1014 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
1015 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
1016 0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
1017 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, \
1018 0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, \
1019 0x4E, 0x67, 0x7D, 0x2C, 0x38, 0x53, 0x2A, 0x3A, \
1020 0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, \
1021 0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, \
1022 0x91, 0x7B, 0xDD, 0x64, 0xB1, 0xC0, 0xFD, 0x4C, \
1023 0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, \
1024 0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, \
1025 0x9B, 0x1F, 0x5C, 0x3E, 0x4E, 0x46, 0x04, 0x1F, \
1026 0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, \
1027 0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, \
1028 0xB8, 0x55, 0x32, 0x2E, 0xDB, 0x63, 0x40, 0xD8, \
1029 0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, \
1030 0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, \
1031 0x7F, 0xB2, 0x9F, 0x8C, 0x18, 0x30, 0x23, 0xC3, \
1032 0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, \
1033 0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, \
1034 0x94, 0xC6, 0x65, 0x1E, 0x77, 0xCA, 0xF9, 0x92, \
1035 0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, \
1036 0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, \
1037 0x0A, 0xE8, 0xDB, 0x58, 0x47, 0xA6, 0x7C, 0xBE, \
1038 0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \
1039 0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \
1040 0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \
1041 0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \
1042 0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \
1043 0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \
1044 0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \
1045 0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \
1046 0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \
1047 0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \
1048 0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \
1049 0xA4, 0x0E, 0x32, 0x9C, 0xCF, 0xF4, 0x6A, 0xAA, \
1050 0x36, 0xAD, 0x00, 0x4C, 0xF6, 0x00, 0xC8, 0x38, \
1051 0x1E, 0x42, 0x5A, 0x31, 0xD9, 0x51, 0xAE, 0x64, \
1052 0xFD, 0xB2, 0x3F, 0xCE, 0xC9, 0x50, 0x9D, 0x43, \
1053 0x68, 0x7F, 0xEB, 0x69, 0xED, 0xD1, 0xCC, 0x5E, \
1054 0x0B, 0x8C, 0xC3, 0xBD, 0xF6, 0x4B, 0x10, 0xEF, \
1055 0x86, 0xB6, 0x31, 0x42, 0xA3, 0xAB, 0x88, 0x29, \
1056 0x55, 0x5B, 0x2F, 0x74, 0x7C, 0x93, 0x26, 0x65, \
1057 0xCB, 0x2C, 0x0F, 0x1C, 0xC0, 0x1B, 0xD7, 0x02, \
1058 0x29, 0x38, 0x88, 0x39, 0xD2, 0xAF, 0x05, 0xE4, \
1059 0x54, 0x50, 0x4A, 0xC7, 0x8B, 0x75, 0x82, 0x82, \
1060 0x28, 0x46, 0xC0, 0xBA, 0x35, 0xC3, 0x5F, 0x5C, \
1061 0x59, 0x16, 0x0C, 0xC0, 0x46, 0xFD, 0x82, 0x51, \
1062 0x54, 0x1F, 0xC6, 0x8C, 0x9C, 0x86, 0xB0, 0x22, \
1063 0xBB, 0x70, 0x99, 0x87, 0x6A, 0x46, 0x0E, 0x74, \
1064 0x51, 0xA8, 0xA9, 0x31, 0x09, 0x70, 0x3F, 0xEE, \
1065 0x1C, 0x21, 0x7E, 0x6C, 0x38, 0x26, 0xE5, 0x2C, \
1066 0x51, 0xAA, 0x69, 0x1E, 0x0E, 0x42, 0x3C, 0xFC, \
1067 0x99, 0xE9, 0xE3, 0x16, 0x50, 0xC1, 0x21, 0x7B, \
1068 0x62, 0x48, 0x16, 0xCD, 0xAD, 0x9A, 0x95, 0xF9, \
1069 0xD5, 0xB8, 0x01, 0x94, 0x88, 0xD9, 0xC0, 0xA0, \
1070 0xA1, 0xFE, 0x30, 0x75, 0xA5, 0x77, 0xE2, 0x31, \
1071 0x83, 0xF8, 0x1D, 0x4A, 0x3F, 0x2F, 0xA4, 0x57, \
1072 0x1E, 0xFC, 0x8C, 0xE0, 0xBA, 0x8A, 0x4F, 0xE8, \
1073 0xB6, 0x85, 0x5D, 0xFE, 0x72, 0xB0, 0xA6, 0x6E, \
1074 0xDE, 0xD2, 0xFB, 0xAB, 0xFB, 0xE5, 0x8A, 0x30, \
1075 0xFA, 0xFA, 0xBE, 0x1C, 0x5D, 0x71, 0xA8, 0x7E, \
1076 0x2F, 0x74, 0x1E, 0xF8, 0xC1, 0xFE, 0x86, 0xFE, \
1077 0xA6, 0xBB, 0xFD, 0xE5, 0x30, 0x67, 0x7F, 0x0D, \
1078 0x97, 0xD1, 0x1D, 0x49, 0xF7, 0xA8, 0x44, 0x3D, \
1079 0x08, 0x22, 0xE5, 0x06, 0xA9, 0xF4, 0x61, 0x4E, \
1080 0x01, 0x1E, 0x2A, 0x94, 0x83, 0x8F, 0xF8, 0x8C, \
1081 0xD6, 0x8C, 0x8B, 0xB7, 0xC5, 0xC6, 0x42, 0x4C, \
1082 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
1083
1084#define MBEDTLS_DHM_RFC7919_FFDHE8192_G_BIN { 0x02 }
1085
Paul Bakker9af723c2014-05-01 13:03:14 +02001086#endif /* dhm.h */