1 /**
2  * \file dhm.h
3  *
4  * \brief   This file contains Diffie-Hellman-Merkle (DHM) key exchange
5  *          definitions and functions.
6  *
7  * Diffie-Hellman-Merkle (DHM) key exchange is defined in
8  * <em>RFC-2631: Diffie-Hellman Key Agreement Method</em> and
9  * <em>Public-Key Cryptography Standards (PKCS) #3: Diffie
10  * Hellman Key Agreement Standard</em>.
11  *
12  * <em>RFC-3526: More Modular Exponential (MODP) Diffie-Hellman groups for
13  * Internet Key Exchange (IKE)</em> defines a number of standardized
14  * Diffie-Hellman groups for IKE.
15  *
16  * <em>RFC-5114: Additional Diffie-Hellman Groups for Use with IETF
17  * Standards</em> defines a number of standardized Diffie-Hellman
18  * groups that can be used.
19  *
20  * \warning  The security of the DHM key exchange relies on the proper choice
21  *           of prime modulus - optimally, it should be a safe prime. The usage
22  *           of non-safe primes both decreases the difficulty of the underlying
23  *           discrete logarithm problem and can lead to small subgroup attacks
24  *           leaking private exponent bits when invalid public keys are used
25  *           and not detected. This is especially relevant if the same DHM
26  *           parameters are reused for multiple key exchanges as in static DHM,
27  *           while the criticality of small-subgroup attacks is lower for
28  *           ephemeral DHM.
29  *
30  * \warning  For performance reasons, the code does neither perform primality
31  *           nor safe primality tests, nor the expensive checks for invalid
32  *           subgroups. Moreover, even if these were performed, non-standardized
33  *           primes cannot be trusted because of the possibility of backdoors
34  *           that can't be effectively checked for.
35  *
36  * \warning  Diffie-Hellman-Merkle is therefore a security risk when not using
37  *           standardized primes generated using a trustworthy ("nothing up
38  *           my sleeve") method, such as the RFC 3526 / 7919 primes. In the TLS
39  *           protocol, DH parameters need to be negotiated, so using the default
40  *           primes systematically is not always an option. If possible, use
41  *           Elliptic Curve Diffie-Hellman (ECDH), which has better performance,
42  *           and for which the TLS protocol mandates the use of standard
43  *           parameters.
44  *
45  */
46 /*
47  *  Copyright The Mbed TLS Contributors
48  *  SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
49  */
50 
51 #ifndef MBEDTLS_DHM_H
52 #define MBEDTLS_DHM_H
53 #include "mbedtls/private_access.h"
54 
55 #include "mbedtls/build_info.h"
56 #include "mbedtls/bignum.h"
57 
58 /*
59  * DHM Error codes
60  */
61 /** Bad input parameters. */
62 #define MBEDTLS_ERR_DHM_BAD_INPUT_DATA                    -0x3080
63 /** Reading of the DHM parameters failed. */
64 #define MBEDTLS_ERR_DHM_READ_PARAMS_FAILED                -0x3100
65 /** Making of the DHM parameters failed. */
66 #define MBEDTLS_ERR_DHM_MAKE_PARAMS_FAILED                -0x3180
67 /** Reading of the public values failed. */
68 #define MBEDTLS_ERR_DHM_READ_PUBLIC_FAILED                -0x3200
69 /** Making of the public value failed. */
70 #define MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED                -0x3280
71 /** Calculation of the DHM secret failed. */
72 #define MBEDTLS_ERR_DHM_CALC_SECRET_FAILED                -0x3300
73 /** The ASN.1 data is not formatted correctly. */
74 #define MBEDTLS_ERR_DHM_INVALID_FORMAT                    -0x3380
75 /** Allocation of memory failed. */
76 #define MBEDTLS_ERR_DHM_ALLOC_FAILED                      -0x3400
77 /** Read or write of file failed. */
78 #define MBEDTLS_ERR_DHM_FILE_IO_ERROR                     -0x3480
79 /** Setting the modulus and generator failed. */
80 #define MBEDTLS_ERR_DHM_SET_GROUP_FAILED                  -0x3580
81 
82 /** Which parameter to access in mbedtls_dhm_get_value(). */
83 typedef enum {
84     MBEDTLS_DHM_PARAM_P,  /*!<  The prime modulus. */
85     MBEDTLS_DHM_PARAM_G,  /*!<  The generator. */
86     MBEDTLS_DHM_PARAM_X,  /*!<  Our secret value. */
87     MBEDTLS_DHM_PARAM_GX, /*!<  Our public key = \c G^X mod \c P. */
88     MBEDTLS_DHM_PARAM_GY, /*!<  The public key of the peer = \c G^Y mod \c P. */
89     MBEDTLS_DHM_PARAM_K,  /*!<  The shared secret = \c G^(XY) mod \c P. */
90 } mbedtls_dhm_parameter;
91 
92 #ifdef __cplusplus
93 extern "C" {
94 #endif
95 
96 #if !defined(MBEDTLS_DHM_ALT)
97 
98 /**
99  * \brief          The DHM context structure.
100  */
101 typedef struct mbedtls_dhm_context {
102     mbedtls_mpi MBEDTLS_PRIVATE(P);      /*!<  The prime modulus. */
103     mbedtls_mpi MBEDTLS_PRIVATE(G);      /*!<  The generator. */
104     mbedtls_mpi MBEDTLS_PRIVATE(X);      /*!<  Our secret value. */
105     mbedtls_mpi MBEDTLS_PRIVATE(GX);     /*!<  Our public key = \c G^X mod \c P. */
106     mbedtls_mpi MBEDTLS_PRIVATE(GY);     /*!<  The public key of the peer = \c G^Y mod \c P. */
107     mbedtls_mpi MBEDTLS_PRIVATE(K);      /*!<  The shared secret = \c G^(XY) mod \c P. */
108     mbedtls_mpi MBEDTLS_PRIVATE(RP);     /*!<  The cached value = \c R^2 mod \c P. */
109     mbedtls_mpi MBEDTLS_PRIVATE(Vi);     /*!<  The blinding value. */
110     mbedtls_mpi MBEDTLS_PRIVATE(Vf);     /*!<  The unblinding value. */
111     mbedtls_mpi MBEDTLS_PRIVATE(pX);     /*!<  The previous \c X. */
112 }
113 mbedtls_dhm_context;
114 
115 #else /* MBEDTLS_DHM_ALT */
116 #include "dhm_alt.h"
117 #endif /* MBEDTLS_DHM_ALT */
118 
119 /**
120  * \brief          This function initializes the DHM context.
121  *
122  * \param ctx      The DHM context to initialize.
123  */
124 void mbedtls_dhm_init(mbedtls_dhm_context *ctx);
125 
126 /**
127  * \brief          This function parses the DHM parameters in a
128  *                 TLS ServerKeyExchange handshake message
129  *                 (DHM modulus, generator, and public key).
130  *
131  * \note           In a TLS handshake, this is the how the client
132  *                 sets up its DHM context from the server's public
133  *                 DHM key material.
134  *
135  * \param ctx      The DHM context to use. This must be initialized.
136  * \param p        On input, *p must be the start of the input buffer.
137  *                 On output, *p is updated to point to the end of the data
138  *                 that has been read. On success, this is the first byte
139  *                 past the end of the ServerKeyExchange parameters.
140  *                 On error, this is the point at which an error has been
141  *                 detected, which is usually not useful except to debug
142  *                 failures.
143  * \param end      The end of the input buffer.
144  *
145  * \return         \c 0 on success.
146  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
147  */
148 int mbedtls_dhm_read_params(mbedtls_dhm_context *ctx,
149                             unsigned char **p,
150                             const unsigned char *end);
151 
152 /**
153  * \brief          This function generates a DHM key pair and exports its
154  *                 public part together with the DHM parameters in the format
155  *                 used in a TLS ServerKeyExchange handshake message.
156  *
157  * \note           This function assumes that the DHM parameters \c ctx->P
158  *                 and \c ctx->G have already been properly set. For that, use
159  *                 mbedtls_dhm_set_group() below in conjunction with
160  *                 mbedtls_mpi_read_binary() and mbedtls_mpi_read_string().
161  *
162  * \note           In a TLS handshake, this is the how the server generates
163  *                 and exports its DHM key material.
164  *
165  * \param ctx      The DHM context to use. This must be initialized
166  *                 and have the DHM parameters set. It may or may not
167  *                 already have imported the peer's public key.
168  * \param x_size   The private key size in Bytes.
169  * \param olen     The address at which to store the number of Bytes
170  *                 written on success. This must not be \c NULL.
171  * \param output   The destination buffer. This must be a writable buffer of
172  *                 sufficient size to hold the reduced binary presentation of
173  *                 the modulus, the generator and the public key, each wrapped
174  *                 with a 2-byte length field. It is the responsibility of the
175  *                 caller to ensure that enough space is available. Refer to
176  *                 mbedtls_mpi_size() to computing the byte-size of an MPI.
177  * \param f_rng    The RNG function. Must not be \c NULL.
178  * \param p_rng    The RNG context to be passed to \p f_rng. This may be
179  *                 \c NULL if \p f_rng doesn't need a context parameter.
180  *
181  * \return         \c 0 on success.
182  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
183  */
184 int mbedtls_dhm_make_params(mbedtls_dhm_context *ctx, int x_size,
185                             unsigned char *output, size_t *olen,
186                             int (*f_rng)(void *, unsigned char *, size_t),
187                             void *p_rng);
188 
189 /**
190  * \brief          This function sets the prime modulus and generator.
191  *
192  * \note           This function can be used to set \c ctx->P, \c ctx->G
193  *                 in preparation for mbedtls_dhm_make_params().
194  *
195  * \param ctx      The DHM context to configure. This must be initialized.
196  * \param P        The MPI holding the DHM prime modulus. This must be
197  *                 an initialized MPI.
198  * \param G        The MPI holding the DHM generator. This must be an
199  *                 initialized MPI.
200  *
201  * \return         \c 0 if successful.
202  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
203  */
204 int mbedtls_dhm_set_group(mbedtls_dhm_context *ctx,
205                           const mbedtls_mpi *P,
206                           const mbedtls_mpi *G);
207 
208 /**
209  * \brief          This function imports the raw public value of the peer.
210  *
211  * \note           In a TLS handshake, this is the how the server imports
212  *                 the Client's public DHM key.
213  *
214  * \param ctx      The DHM context to use. This must be initialized and have
215  *                 its DHM parameters set, e.g. via mbedtls_dhm_set_group().
216  *                 It may or may not already have generated its own private key.
217  * \param input    The input buffer containing the \c G^Y value of the peer.
218  *                 This must be a readable buffer of size \p ilen Bytes.
219  * \param ilen     The size of the input buffer \p input in Bytes.
220  *
221  * \return         \c 0 on success.
222  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
223  */
224 int mbedtls_dhm_read_public(mbedtls_dhm_context *ctx,
225                             const unsigned char *input, size_t ilen);
226 
227 /**
228  * \brief          This function creates a DHM key pair and exports
229  *                 the raw public key in big-endian format.
230  *
231  * \note           The destination buffer is always fully written
232  *                 so as to contain a big-endian representation of G^X mod P.
233  *                 If it is larger than \c ctx->len, it is padded accordingly
234  *                 with zero-bytes at the beginning.
235  *
236  * \param ctx      The DHM context to use. This must be initialized and
237  *                 have the DHM parameters set. It may or may not already
238  *                 have imported the peer's public key.
239  * \param x_size   The private key size in Bytes.
240  * \param output   The destination buffer. This must be a writable buffer of
241  *                 size \p olen Bytes.
242  * \param olen     The length of the destination buffer. This must be at least
243  *                 equal to `ctx->len` (the size of \c P).
244  * \param f_rng    The RNG function. This must not be \c NULL.
245  * \param p_rng    The RNG context to be passed to \p f_rng. This may be \c NULL
246  *                 if \p f_rng doesn't need a context argument.
247  *
248  * \return         \c 0 on success.
249  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
250  */
251 int mbedtls_dhm_make_public(mbedtls_dhm_context *ctx, int x_size,
252                             unsigned char *output, size_t olen,
253                             int (*f_rng)(void *, unsigned char *, size_t),
254                             void *p_rng);
255 
256 /**
257  * \brief          This function derives and exports the shared secret
258  *                 \c (G^Y)^X mod \c P.
259  *
260  * \note           If \p f_rng is not \c NULL, it is used to blind the input as
261  *                 a countermeasure against timing attacks. Blinding is used
262  *                 only if our private key \c X is re-used, and not used
263  *                 otherwise. We recommend always passing a non-NULL
264  *                 \p f_rng argument.
265  *
266  * \param ctx           The DHM context to use. This must be initialized
267  *                      and have its own private key generated and the peer's
268  *                      public key imported.
269  * \param output        The buffer to write the generated shared key to. This
270  *                      must be a writable buffer of size \p output_size Bytes.
271  * \param output_size   The size of the destination buffer. This must be at
272  *                      least the size of \c ctx->len (the size of \c P).
273  * \param olen          On exit, holds the actual number of Bytes written.
274  * \param f_rng         The RNG function. Must not be \c NULL. Used for
275  *                      blinding.
276  * \param p_rng         The RNG context to be passed to \p f_rng. This may be
277  *                      \c NULL if \p f_rng doesn't need a context parameter.
278  *
279  * \return              \c 0 on success.
280  * \return              An \c MBEDTLS_ERR_DHM_XXX error code on failure.
281  */
282 int mbedtls_dhm_calc_secret(mbedtls_dhm_context *ctx,
283                             unsigned char *output, size_t output_size, size_t *olen,
284                             int (*f_rng)(void *, unsigned char *, size_t),
285                             void *p_rng);
286 
287 /**
288  * \brief          This function returns the size of the prime modulus in bits.
289  *
290  * \param ctx      The DHM context to query.
291  *
292  * \return         The size of the prime modulus in bits,
293  *                 i.e. the number n such that 2^(n-1) <= P < 2^n.
294  */
295 size_t mbedtls_dhm_get_bitlen(const mbedtls_dhm_context *ctx);
296 
297 /**
298  * \brief          This function returns the size of the prime modulus in bytes.
299  *
300  * \param ctx      The DHM context to query.
301  *
302  * \return         The size of the prime modulus in bytes,
303  *                 i.e. the number n such that 2^(8*(n-1)) <= P < 2^(8*n).
304  */
305 size_t mbedtls_dhm_get_len(const mbedtls_dhm_context *ctx);
306 
307 /**
308  * \brief          This function copies a parameter of a DHM key.
309  *
310  * \param ctx      The DHM context to query.
311  * \param param    The parameter to copy.
312  * \param dest     The MPI object to copy the value into. It must be
313  *                 initialized.
314  *
315  * \return         \c 0 on success.
316  * \return         #MBEDTLS_ERR_DHM_BAD_INPUT_DATA if \p param is invalid.
317  * \return         An \c MBEDTLS_ERR_MPI_XXX error code if the copy fails.
318  */
319 int mbedtls_dhm_get_value(const mbedtls_dhm_context *ctx,
320                           mbedtls_dhm_parameter param,
321                           mbedtls_mpi *dest);
322 
323 /**
324  * \brief          This function frees and clears the components
325  *                 of a DHM context.
326  *
327  * \param ctx      The DHM context to free and clear. This may be \c NULL,
328  *                 in which case this function is a no-op. If it is not \c NULL,
329  *                 it must point to an initialized DHM context.
330  */
331 void mbedtls_dhm_free(mbedtls_dhm_context *ctx);
332 
333 #if defined(MBEDTLS_ASN1_PARSE_C)
334 /**
335  * \brief             This function parses DHM parameters in PEM or DER format.
336  *
337  * \param dhm         The DHM context to import the DHM parameters into.
338  *                    This must be initialized.
339  * \param dhmin       The input buffer. This must be a readable buffer of
340  *                    length \p dhminlen Bytes.
341  * \param dhminlen    The size of the input buffer \p dhmin, including the
342  *                    terminating \c NULL Byte for PEM data.
343  *
344  * \return            \c 0 on success.
345  * \return            An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX error
346  *                    code on failure.
347  */
348 int mbedtls_dhm_parse_dhm(mbedtls_dhm_context *dhm, const unsigned char *dhmin,
349                           size_t dhminlen);
350 
351 #if defined(MBEDTLS_FS_IO)
352 /**
353  * \brief          This function loads and parses DHM parameters from a file.
354  *
355  * \param dhm      The DHM context to load the parameters to.
356  *                 This must be initialized.
357  * \param path     The filename to read the DHM parameters from.
358  *                 This must not be \c NULL.
359  *
360  * \return         \c 0 on success.
361  * \return         An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX
362  *                 error code on failure.
363  */
364 int mbedtls_dhm_parse_dhmfile(mbedtls_dhm_context *dhm, const char *path);
365 #endif /* MBEDTLS_FS_IO */
366 #endif /* MBEDTLS_ASN1_PARSE_C */
367 
368 #if defined(MBEDTLS_SELF_TEST)
369 
370 /**
371  * \brief          The DMH checkup routine.
372  *
373  * \return         \c 0 on success.
374  * \return         \c 1 on failure.
375  */
376 int mbedtls_dhm_self_test(int verbose);
377 
378 #endif /* MBEDTLS_SELF_TEST */
379 #ifdef __cplusplus
380 }
381 #endif
382 
383 /**
384  * RFC 3526, RFC 5114 and RFC 7919 standardize a number of
385  * Diffie-Hellman groups, some of which are included here
386  * for use within the SSL/TLS module and the user's convenience
387  * when configuring the Diffie-Hellman parameters by hand
388  * through \c mbedtls_ssl_conf_dh_param.
389  *
390  * The following lists the source of the above groups in the standards:
391  * - RFC 5114 section 2.2:  2048-bit MODP Group with 224-bit Prime Order Subgroup
392  * - RFC 3526 section 3:    2048-bit MODP Group
393  * - RFC 3526 section 4:    3072-bit MODP Group
394  * - RFC 3526 section 5:    4096-bit MODP Group
395  * - RFC 7919 section A.1:  ffdhe2048
396  * - RFC 7919 section A.2:  ffdhe3072
397  * - RFC 7919 section A.3:  ffdhe4096
398  * - RFC 7919 section A.4:  ffdhe6144
399  * - RFC 7919 section A.5:  ffdhe8192
400  *
401  * The constants with suffix "_p" denote the chosen prime moduli, while
402  * the constants with suffix "_g" denote the chosen generator
403  * of the associated prime field.
404  *
405  * The constants further suffixed with "_bin" are provided in binary format,
406  * while all other constants represent null-terminated strings holding the
407  * hexadecimal presentation of the respective numbers.
408  *
409  * The primes from RFC 3526 and RFC 7919 have been generating by the following
410  * trust-worthy procedure:
411  * - Fix N in { 2048, 3072, 4096, 6144, 8192 } and consider the N-bit number
412  *   the first and last 64 bits are all 1, and the remaining N - 128 bits of
413  *   which are 0x7ff...ff.
414  * - Add the smallest multiple of the first N - 129 bits of the binary expansion
415  *   of pi (for RFC 5236) or e (for RFC 7919) to this intermediate bit-string
416  *   such that the resulting integer is a safe-prime.
417  * - The result is the respective RFC 3526 / 7919 prime, and the corresponding
418  *   generator is always chosen to be 2 (which is a square for these prime,
419  *   hence the corresponding subgroup has order (p-1)/2 and avoids leaking a
420  *   bit in the private exponent).
421  *
422  */
423 
424 /*
425  * Trustworthy DHM parameters in binary form
426  */
427 
428 #define MBEDTLS_DHM_RFC3526_MODP_2048_P_BIN {        \
429         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
430         0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \
431         0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \
432         0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \
433         0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \
434         0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \
435         0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \
436         0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \
437         0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \
438         0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \
439         0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \
440         0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \
441         0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \
442         0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \
443         0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \
444         0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \
445         0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \
446         0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \
447         0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \
448         0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \
449         0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \
450         0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \
451         0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \
452         0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \
453         0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \
454         0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \
455         0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \
456         0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \
457         0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \
458         0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \
459         0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAC, 0xAA, 0x68, \
460         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
461 
462 #define MBEDTLS_DHM_RFC3526_MODP_2048_G_BIN { 0x02 }
463 
464 #define MBEDTLS_DHM_RFC3526_MODP_3072_P_BIN {       \
465         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
466         0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \
467         0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \
468         0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \
469         0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \
470         0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \
471         0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \
472         0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \
473         0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \
474         0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \
475         0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \
476         0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \
477         0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \
478         0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \
479         0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \
480         0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \
481         0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \
482         0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \
483         0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \
484         0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \
485         0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \
486         0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \
487         0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \
488         0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \
489         0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \
490         0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \
491         0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \
492         0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \
493         0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \
494         0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \
495         0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, \
496         0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33, \
497         0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, \
498         0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, \
499         0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D, \
500         0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, \
501         0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, \
502         0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D, \
503         0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, \
504         0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, \
505         0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64, \
506         0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, \
507         0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, \
508         0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2, \
509         0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, \
510         0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, \
511         0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x3A, 0xD2, 0xCA, \
512         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
513 
514 #define MBEDTLS_DHM_RFC3526_MODP_3072_G_BIN { 0x02 }
515 
516 #define MBEDTLS_DHM_RFC3526_MODP_4096_P_BIN  {       \
517         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,  \
518         0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34,  \
519         0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1,  \
520         0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74,  \
521         0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22,  \
522         0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD,  \
523         0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B,  \
524         0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37,  \
525         0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45,  \
526         0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6,  \
527         0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B,  \
528         0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED,  \
529         0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5,  \
530         0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6,  \
531         0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D,  \
532         0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05,  \
533         0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A,  \
534         0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F,  \
535         0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96,  \
536         0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB,  \
537         0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D,  \
538         0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04,  \
539         0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C,  \
540         0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B,  \
541         0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03,  \
542         0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F,  \
543         0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9,  \
544         0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18,  \
545         0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5,  \
546         0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10,  \
547         0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D,  \
548         0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33,  \
549         0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64,  \
550         0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A,  \
551         0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D,  \
552         0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7,  \
553         0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7,  \
554         0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D,  \
555         0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B,  \
556         0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64,  \
557         0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64,  \
558         0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C,  \
559         0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C,  \
560         0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2,  \
561         0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31,  \
562         0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E,  \
563         0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x21, 0x08, 0x01,  \
564         0x1A, 0x72, 0x3C, 0x12, 0xA7, 0x87, 0xE6, 0xD7,  \
565         0x88, 0x71, 0x9A, 0x10, 0xBD, 0xBA, 0x5B, 0x26,  \
566         0x99, 0xC3, 0x27, 0x18, 0x6A, 0xF4, 0xE2, 0x3C,  \
567         0x1A, 0x94, 0x68, 0x34, 0xB6, 0x15, 0x0B, 0xDA,  \
568         0x25, 0x83, 0xE9, 0xCA, 0x2A, 0xD4, 0x4C, 0xE8,  \
569         0xDB, 0xBB, 0xC2, 0xDB, 0x04, 0xDE, 0x8E, 0xF9,  \
570         0x2E, 0x8E, 0xFC, 0x14, 0x1F, 0xBE, 0xCA, 0xA6,  \
571         0x28, 0x7C, 0x59, 0x47, 0x4E, 0x6B, 0xC0, 0x5D,  \
572         0x99, 0xB2, 0x96, 0x4F, 0xA0, 0x90, 0xC3, 0xA2,  \
573         0x23, 0x3B, 0xA1, 0x86, 0x51, 0x5B, 0xE7, 0xED,  \
574         0x1F, 0x61, 0x29, 0x70, 0xCE, 0xE2, 0xD7, 0xAF,  \
575         0xB8, 0x1B, 0xDD, 0x76, 0x21, 0x70, 0x48, 0x1C,  \
576         0xD0, 0x06, 0x91, 0x27, 0xD5, 0xB0, 0x5A, 0xA9,  \
577         0x93, 0xB4, 0xEA, 0x98, 0x8D, 0x8F, 0xDD, 0xC1,  \
578         0x86, 0xFF, 0xB7, 0xDC, 0x90, 0xA6, 0xC0, 0x8F,  \
579         0x4D, 0xF4, 0x35, 0xC9, 0x34, 0x06, 0x31, 0x99,  \
580         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
581 
582 #define MBEDTLS_DHM_RFC3526_MODP_4096_G_BIN { 0x02 }
583 
584 #define MBEDTLS_DHM_RFC7919_FFDHE2048_P_BIN {        \
585         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
586         0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
587         0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
588         0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
589         0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
590         0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
591         0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
592         0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
593         0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
594         0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
595         0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
596         0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
597         0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
598         0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
599         0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
600         0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
601         0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
602         0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
603         0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
604         0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
605         0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
606         0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
607         0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
608         0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
609         0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
610         0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
611         0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
612         0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
613         0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
614         0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
615         0x88, 0x6B, 0x42, 0x38, 0x61, 0x28, 0x5C, 0x97, \
616         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }
617 
618 #define MBEDTLS_DHM_RFC7919_FFDHE2048_G_BIN { 0x02 }
619 
620 #define MBEDTLS_DHM_RFC7919_FFDHE3072_P_BIN { \
621         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
622         0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
623         0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
624         0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
625         0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
626         0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
627         0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
628         0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
629         0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
630         0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
631         0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
632         0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
633         0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
634         0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
635         0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
636         0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
637         0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
638         0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
639         0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
640         0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
641         0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
642         0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
643         0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
644         0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
645         0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
646         0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
647         0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
648         0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
649         0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
650         0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
651         0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
652         0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
653         0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
654         0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
655         0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
656         0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
657         0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
658         0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
659         0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
660         0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
661         0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
662         0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
663         0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
664         0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
665         0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
666         0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
667         0x25, 0xE4, 0x1D, 0x2B, 0x66, 0xC6, 0x2E, 0x37, \
668         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
669 
670 #define MBEDTLS_DHM_RFC7919_FFDHE3072_G_BIN { 0x02 }
671 
672 #define MBEDTLS_DHM_RFC7919_FFDHE4096_P_BIN {        \
673         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
674         0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
675         0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
676         0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
677         0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
678         0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
679         0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
680         0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
681         0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
682         0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
683         0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
684         0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
685         0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
686         0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
687         0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
688         0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
689         0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
690         0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
691         0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
692         0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
693         0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
694         0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
695         0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
696         0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
697         0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
698         0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
699         0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
700         0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
701         0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
702         0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
703         0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
704         0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
705         0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
706         0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
707         0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
708         0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
709         0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
710         0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
711         0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
712         0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
713         0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
714         0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
715         0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
716         0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
717         0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
718         0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
719         0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
720         0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
721         0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
722         0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
723         0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
724         0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
725         0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
726         0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
727         0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
728         0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
729         0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
730         0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
731         0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
732         0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
733         0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
734         0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
735         0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x65, 0x5F, 0x6A, \
736         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
737 
738 #define MBEDTLS_DHM_RFC7919_FFDHE4096_G_BIN { 0x02 }
739 
740 #define MBEDTLS_DHM_RFC7919_FFDHE6144_P_BIN {        \
741         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
742         0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
743         0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
744         0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
745         0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
746         0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
747         0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
748         0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
749         0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
750         0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
751         0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
752         0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
753         0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
754         0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
755         0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
756         0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
757         0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
758         0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
759         0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
760         0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
761         0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
762         0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
763         0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
764         0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
765         0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
766         0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
767         0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
768         0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
769         0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
770         0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
771         0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
772         0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
773         0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
774         0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
775         0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
776         0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
777         0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
778         0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
779         0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
780         0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
781         0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
782         0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
783         0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
784         0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
785         0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
786         0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
787         0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
788         0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
789         0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
790         0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
791         0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
792         0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
793         0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
794         0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
795         0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
796         0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
797         0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
798         0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
799         0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
800         0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
801         0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
802         0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
803         0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, \
804         0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, \
805         0x4E, 0x67, 0x7D, 0x2C, 0x38, 0x53, 0x2A, 0x3A, \
806         0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, \
807         0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, \
808         0x91, 0x7B, 0xDD, 0x64, 0xB1, 0xC0, 0xFD, 0x4C, \
809         0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, \
810         0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, \
811         0x9B, 0x1F, 0x5C, 0x3E, 0x4E, 0x46, 0x04, 0x1F, \
812         0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, \
813         0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, \
814         0xB8, 0x55, 0x32, 0x2E, 0xDB, 0x63, 0x40, 0xD8, \
815         0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, \
816         0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, \
817         0x7F, 0xB2, 0x9F, 0x8C, 0x18, 0x30, 0x23, 0xC3, \
818         0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, \
819         0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, \
820         0x94, 0xC6, 0x65, 0x1E, 0x77, 0xCA, 0xF9, 0x92, \
821         0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, \
822         0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, \
823         0x0A, 0xE8, 0xDB, 0x58, 0x47, 0xA6, 0x7C, 0xBE, \
824         0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \
825         0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \
826         0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \
827         0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \
828         0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \
829         0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \
830         0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \
831         0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \
832         0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \
833         0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \
834         0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \
835         0xA4, 0x0E, 0x32, 0x9C, 0xD0, 0xE4, 0x0E, 0x65, \
836         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
837 
838 #define MBEDTLS_DHM_RFC7919_FFDHE6144_G_BIN { 0x02 }
839 
840 #define MBEDTLS_DHM_RFC7919_FFDHE8192_P_BIN {        \
841         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
842         0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
843         0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
844         0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
845         0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
846         0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
847         0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
848         0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
849         0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
850         0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
851         0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
852         0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
853         0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
854         0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
855         0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
856         0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
857         0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
858         0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
859         0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
860         0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
861         0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
862         0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
863         0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
864         0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
865         0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
866         0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
867         0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
868         0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
869         0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
870         0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
871         0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
872         0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
873         0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
874         0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
875         0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
876         0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
877         0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
878         0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
879         0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
880         0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
881         0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
882         0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
883         0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
884         0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
885         0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
886         0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
887         0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
888         0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
889         0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
890         0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
891         0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
892         0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
893         0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
894         0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
895         0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
896         0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
897         0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
898         0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
899         0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
900         0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
901         0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
902         0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
903         0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, \
904         0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, \
905         0x4E, 0x67, 0x7D, 0x2C, 0x38, 0x53, 0x2A, 0x3A, \
906         0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, \
907         0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, \
908         0x91, 0x7B, 0xDD, 0x64, 0xB1, 0xC0, 0xFD, 0x4C, \
909         0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, \
910         0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, \
911         0x9B, 0x1F, 0x5C, 0x3E, 0x4E, 0x46, 0x04, 0x1F, \
912         0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, \
913         0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, \
914         0xB8, 0x55, 0x32, 0x2E, 0xDB, 0x63, 0x40, 0xD8, \
915         0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, \
916         0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, \
917         0x7F, 0xB2, 0x9F, 0x8C, 0x18, 0x30, 0x23, 0xC3, \
918         0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, \
919         0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, \
920         0x94, 0xC6, 0x65, 0x1E, 0x77, 0xCA, 0xF9, 0x92, \
921         0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, \
922         0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, \
923         0x0A, 0xE8, 0xDB, 0x58, 0x47, 0xA6, 0x7C, 0xBE, \
924         0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \
925         0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \
926         0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \
927         0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \
928         0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \
929         0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \
930         0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \
931         0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \
932         0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \
933         0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \
934         0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \
935         0xA4, 0x0E, 0x32, 0x9C, 0xCF, 0xF4, 0x6A, 0xAA, \
936         0x36, 0xAD, 0x00, 0x4C, 0xF6, 0x00, 0xC8, 0x38, \
937         0x1E, 0x42, 0x5A, 0x31, 0xD9, 0x51, 0xAE, 0x64, \
938         0xFD, 0xB2, 0x3F, 0xCE, 0xC9, 0x50, 0x9D, 0x43, \
939         0x68, 0x7F, 0xEB, 0x69, 0xED, 0xD1, 0xCC, 0x5E, \
940         0x0B, 0x8C, 0xC3, 0xBD, 0xF6, 0x4B, 0x10, 0xEF, \
941         0x86, 0xB6, 0x31, 0x42, 0xA3, 0xAB, 0x88, 0x29, \
942         0x55, 0x5B, 0x2F, 0x74, 0x7C, 0x93, 0x26, 0x65, \
943         0xCB, 0x2C, 0x0F, 0x1C, 0xC0, 0x1B, 0xD7, 0x02, \
944         0x29, 0x38, 0x88, 0x39, 0xD2, 0xAF, 0x05, 0xE4, \
945         0x54, 0x50, 0x4A, 0xC7, 0x8B, 0x75, 0x82, 0x82, \
946         0x28, 0x46, 0xC0, 0xBA, 0x35, 0xC3, 0x5F, 0x5C, \
947         0x59, 0x16, 0x0C, 0xC0, 0x46, 0xFD, 0x82, 0x51, \
948         0x54, 0x1F, 0xC6, 0x8C, 0x9C, 0x86, 0xB0, 0x22, \
949         0xBB, 0x70, 0x99, 0x87, 0x6A, 0x46, 0x0E, 0x74, \
950         0x51, 0xA8, 0xA9, 0x31, 0x09, 0x70, 0x3F, 0xEE, \
951         0x1C, 0x21, 0x7E, 0x6C, 0x38, 0x26, 0xE5, 0x2C, \
952         0x51, 0xAA, 0x69, 0x1E, 0x0E, 0x42, 0x3C, 0xFC, \
953         0x99, 0xE9, 0xE3, 0x16, 0x50, 0xC1, 0x21, 0x7B, \
954         0x62, 0x48, 0x16, 0xCD, 0xAD, 0x9A, 0x95, 0xF9, \
955         0xD5, 0xB8, 0x01, 0x94, 0x88, 0xD9, 0xC0, 0xA0, \
956         0xA1, 0xFE, 0x30, 0x75, 0xA5, 0x77, 0xE2, 0x31, \
957         0x83, 0xF8, 0x1D, 0x4A, 0x3F, 0x2F, 0xA4, 0x57, \
958         0x1E, 0xFC, 0x8C, 0xE0, 0xBA, 0x8A, 0x4F, 0xE8, \
959         0xB6, 0x85, 0x5D, 0xFE, 0x72, 0xB0, 0xA6, 0x6E, \
960         0xDE, 0xD2, 0xFB, 0xAB, 0xFB, 0xE5, 0x8A, 0x30, \
961         0xFA, 0xFA, 0xBE, 0x1C, 0x5D, 0x71, 0xA8, 0x7E, \
962         0x2F, 0x74, 0x1E, 0xF8, 0xC1, 0xFE, 0x86, 0xFE, \
963         0xA6, 0xBB, 0xFD, 0xE5, 0x30, 0x67, 0x7F, 0x0D, \
964         0x97, 0xD1, 0x1D, 0x49, 0xF7, 0xA8, 0x44, 0x3D, \
965         0x08, 0x22, 0xE5, 0x06, 0xA9, 0xF4, 0x61, 0x4E, \
966         0x01, 0x1E, 0x2A, 0x94, 0x83, 0x8F, 0xF8, 0x8C, \
967         0xD6, 0x8C, 0x8B, 0xB7, 0xC5, 0xC6, 0x42, 0x4C, \
968         0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
969 
970 #define MBEDTLS_DHM_RFC7919_FFDHE8192_G_BIN { 0x02 }
971 
972 #endif /* dhm.h */
973