Kenji Arai / mbed-os_TYBLE16

Dependents:   TYBLE16_simple_data_logger TYBLE16_MP3_Air

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers dhm.h Source File

dhm.h

Go to the documentation of this file.
00001 /**
00002  * \file dhm.h
00003  *
00004  * \brief   This file contains Diffie-Hellman-Merkle (DHM) key exchange
00005  *          definitions and functions.
00006  *
00007  * Diffie-Hellman-Merkle (DHM) key exchange is defined in
00008  * <em>RFC-2631: Diffie-Hellman Key Agreement Method</em> and
00009  * <em>Public-Key Cryptography Standards (PKCS) #3: Diffie
00010  * Hellman Key Agreement Standard</em>.
00011  *
00012  * <em>RFC-3526: More Modular Exponential (MODP) Diffie-Hellman groups for
00013  * Internet Key Exchange (IKE)</em> defines a number of standardized
00014  * Diffie-Hellman groups for IKE.
00015  *
00016  * <em>RFC-5114: Additional Diffie-Hellman Groups for Use with IETF
00017  * Standards</em> defines a number of standardized Diffie-Hellman
00018  * groups that can be used.
00019  *
00020  * \warning  The security of the DHM key exchange relies on the proper choice
00021  *           of prime modulus - optimally, it should be a safe prime. The usage
00022  *           of non-safe primes both decreases the difficulty of the underlying
00023  *           discrete logarithm problem and can lead to small subgroup attacks
00024  *           leaking private exponent bits when invalid public keys are used
00025  *           and not detected. This is especially relevant if the same DHM
00026  *           parameters are reused for multiple key exchanges as in static DHM,
00027  *           while the criticality of small-subgroup attacks is lower for
00028  *           ephemeral DHM.
00029  *
00030  * \warning  For performance reasons, the code does neither perform primality
00031  *           nor safe primality tests, nor the expensive checks for invalid
00032  *           subgroups. Moreover, even if these were performed, non-standardized
00033  *           primes cannot be trusted because of the possibility of backdoors
00034  *           that can't be effectively checked for.
00035  *
00036  * \warning  Diffie-Hellman-Merkle is therefore a security risk when not using
00037  *           standardized primes generated using a trustworthy ("nothing up
00038  *           my sleeve") method, such as the RFC 3526 / 7919 primes. In the TLS
00039  *           protocol, DH parameters need to be negotiated, so using the default
00040  *           primes systematically is not always an option. If possible, use
00041  *           Elliptic Curve Diffie-Hellman (ECDH), which has better performance,
00042  *           and for which the TLS protocol mandates the use of standard
00043  *           parameters.
00044  *
00045  */
00046 /*
00047  *  Copyright (C) 2006-2018, Arm Limited (or its affiliates), All Rights Reserved
00048  *  SPDX-License-Identifier: Apache-2.0
00049  *
00050  *  Licensed under the Apache License, Version 2.0 (the "License"); you may
00051  *  not use this file except in compliance with the License.
00052  *  You may obtain a copy of the License at
00053  *
00054  *  http://www.apache.org/licenses/LICENSE-2.0
00055  *
00056  *  Unless required by applicable law or agreed to in writing, software
00057  *  distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
00058  *  WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00059  *  See the License for the specific language governing permissions and
00060  *  limitations under the License.
00061  *
00062  *  This file is part of Mbed TLS (https://tls.mbed.org)
00063  */
00064 
00065 #ifndef MBEDTLS_DHM_H
00066 #define MBEDTLS_DHM_H
00067 
00068 #if !defined(MBEDTLS_CONFIG_FILE)
00069 #include "mbedtls/config.h"
00070 #else
00071 #include MBEDTLS_CONFIG_FILE
00072 #endif
00073 #include "mbedtls/bignum.h"
00074 
00075 /*
00076  * DHM Error codes
00077  */
00078 #define MBEDTLS_ERR_DHM_BAD_INPUT_DATA                    -0x3080  /**< Bad input parameters. */
00079 #define MBEDTLS_ERR_DHM_READ_PARAMS_FAILED                -0x3100  /**< Reading of the DHM parameters failed. */
00080 #define MBEDTLS_ERR_DHM_MAKE_PARAMS_FAILED                -0x3180  /**< Making of the DHM parameters failed. */
00081 #define MBEDTLS_ERR_DHM_READ_PUBLIC_FAILED                -0x3200  /**< Reading of the public values failed. */
00082 #define MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED                -0x3280  /**< Making of the public value failed. */
00083 #define MBEDTLS_ERR_DHM_CALC_SECRET_FAILED                -0x3300  /**< Calculation of the DHM secret failed. */
00084 #define MBEDTLS_ERR_DHM_INVALID_FORMAT                    -0x3380  /**< The ASN.1 data is not formatted correctly. */
00085 #define MBEDTLS_ERR_DHM_ALLOC_FAILED                      -0x3400  /**< Allocation of memory failed. */
00086 #define MBEDTLS_ERR_DHM_FILE_IO_ERROR                     -0x3480  /**< Read or write of file failed. */
00087 
00088 /* MBEDTLS_ERR_DHM_HW_ACCEL_FAILED is deprecated and should not be used. */
00089 #define MBEDTLS_ERR_DHM_HW_ACCEL_FAILED                   -0x3500  /**< DHM hardware accelerator failed. */
00090 
00091 #define MBEDTLS_ERR_DHM_SET_GROUP_FAILED                  -0x3580  /**< Setting the modulus and generator failed. */
00092 
00093 #ifdef __cplusplus
00094 extern "C" {
00095 #endif
00096 
00097 #if !defined(MBEDTLS_DHM_ALT)
00098 
00099 /**
00100  * \brief          The DHM context structure.
00101  */
00102 typedef struct mbedtls_dhm_context
00103 {
00104     size_t len ;         /*!<  The size of \p P in Bytes. */
00105     mbedtls_mpi P ;      /*!<  The prime modulus. */
00106     mbedtls_mpi G ;      /*!<  The generator. */
00107     mbedtls_mpi X ;      /*!<  Our secret value. */
00108     mbedtls_mpi GX ;     /*!<  Our public key = \c G^X mod \c P. */
00109     mbedtls_mpi GY ;     /*!<  The public key of the peer = \c G^Y mod \c P. */
00110     mbedtls_mpi K ;      /*!<  The shared secret = \c G^(XY) mod \c P. */
00111     mbedtls_mpi RP ;     /*!<  The cached value = \c R^2 mod \c P. */
00112     mbedtls_mpi Vi ;     /*!<  The blinding value. */
00113     mbedtls_mpi Vf ;     /*!<  The unblinding value. */
00114     mbedtls_mpi pX ;     /*!<  The previous \c X. */
00115 }
00116 mbedtls_dhm_context;
00117 
00118 #else /* MBEDTLS_DHM_ALT */
00119 #include "dhm_alt.h"
00120 #endif /* MBEDTLS_DHM_ALT */
00121 
00122 /**
00123  * \brief          This function initializes the DHM context.
00124  *
00125  * \param ctx      The DHM context to initialize.
00126  */
00127 void mbedtls_dhm_init( mbedtls_dhm_context *ctx );
00128 
00129 /**
00130  * \brief          This function parses the DHM parameters in a
00131  *                 TLS ServerKeyExchange handshake message
00132  *                 (DHM modulus, generator, and public key).
00133  *
00134  * \note           In a TLS handshake, this is the how the client
00135  *                 sets up its DHM context from the server's public
00136  *                 DHM key material.
00137  *
00138  * \param ctx      The DHM context to use. This must be initialized.
00139  * \param p        On input, *p must be the start of the input buffer.
00140  *                 On output, *p is updated to point to the end of the data
00141  *                 that has been read. On success, this is the first byte
00142  *                 past the end of the ServerKeyExchange parameters.
00143  *                 On error, this is the point at which an error has been
00144  *                 detected, which is usually not useful except to debug
00145  *                 failures.
00146  * \param end      The end of the input buffer.
00147  *
00148  * \return         \c 0 on success.
00149  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
00150  */
00151 int mbedtls_dhm_read_params( mbedtls_dhm_context *ctx,
00152                              unsigned char **p,
00153                              const unsigned char *end );
00154 
00155 /**
00156  * \brief          This function generates a DHM key pair and exports its
00157  *                 public part together with the DHM parameters in the format
00158  *                 used in a TLS ServerKeyExchange handshake message.
00159  *
00160  * \note           This function assumes that the DHM parameters \c ctx->P
00161  *                 and \c ctx->G have already been properly set. For that, use
00162  *                 mbedtls_dhm_set_group() below in conjunction with
00163  *                 mbedtls_mpi_read_binary() and mbedtls_mpi_read_string().
00164  *
00165  * \note           In a TLS handshake, this is the how the server generates
00166  *                 and exports its DHM key material.
00167  *
00168  * \param ctx      The DHM context to use. This must be initialized
00169  *                 and have the DHM parameters set. It may or may not
00170  *                 already have imported the peer's public key.
00171  * \param x_size   The private key size in Bytes.
00172  * \param olen     The address at which to store the number of Bytes
00173  *                 written on success. This must not be \c NULL.
00174  * \param output   The destination buffer. This must be a writable buffer of
00175  *                 sufficient size to hold the reduced binary presentation of
00176  *                 the modulus, the generator and the public key, each wrapped
00177  *                 with a 2-byte length field. It is the responsibility of the
00178  *                 caller to ensure that enough space is available. Refer to
00179  *                 mbedtls_mpi_size() to computing the byte-size of an MPI.
00180  * \param f_rng    The RNG function. Must not be \c NULL.
00181  * \param p_rng    The RNG context to be passed to \p f_rng. This may be
00182  *                 \c NULL if \p f_rng doesn't need a context parameter.
00183  *
00184  * \return         \c 0 on success.
00185  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
00186  */
00187 int mbedtls_dhm_make_params( mbedtls_dhm_context *ctx, int x_size,
00188                      unsigned char *output, size_t *olen,
00189                      int (*f_rng)(void *, unsigned char *, size_t),
00190                      void *p_rng );
00191 
00192 /**
00193  * \brief          This function sets the prime modulus and generator.
00194  *
00195  * \note           This function can be used to set \c ctx->P, \c ctx->G
00196  *                 in preparation for mbedtls_dhm_make_params().
00197  *
00198  * \param ctx      The DHM context to configure. This must be initialized.
00199  * \param P        The MPI holding the DHM prime modulus. This must be
00200  *                 an initialized MPI.
00201  * \param G        The MPI holding the DHM generator. This must be an
00202  *                 initialized MPI.
00203  *
00204  * \return         \c 0 if successful.
00205  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
00206  */
00207 int mbedtls_dhm_set_group( mbedtls_dhm_context *ctx,
00208                            const mbedtls_mpi *P,
00209                            const mbedtls_mpi *G );
00210 
00211 /**
00212  * \brief          This function imports the raw public value of the peer.
00213  *
00214  * \note           In a TLS handshake, this is the how the server imports
00215  *                 the Client's public DHM key.
00216  *
00217  * \param ctx      The DHM context to use. This must be initialized and have
00218  *                 its DHM parameters set, e.g. via mbedtls_dhm_set_group().
00219  *                 It may or may not already have generated its own private key.
00220  * \param input    The input buffer containing the \c G^Y value of the peer.
00221  *                 This must be a readable buffer of size \p ilen Bytes.
00222  * \param ilen     The size of the input buffer \p input in Bytes.
00223  *
00224  * \return         \c 0 on success.
00225  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
00226  */
00227 int mbedtls_dhm_read_public( mbedtls_dhm_context *ctx,
00228                      const unsigned char *input, size_t ilen );
00229 
00230 /**
00231  * \brief          This function creates a DHM key pair and exports
00232  *                 the raw public key in big-endian format.
00233  *
00234  * \note           The destination buffer is always fully written
00235  *                 so as to contain a big-endian representation of G^X mod P.
00236  *                 If it is larger than \c ctx->len, it is padded accordingly
00237  *                 with zero-bytes at the beginning.
00238  *
00239  * \param ctx      The DHM context to use. This must be initialized and
00240  *                 have the DHM parameters set. It may or may not already
00241  *                 have imported the peer's public key.
00242  * \param x_size   The private key size in Bytes.
00243  * \param output   The destination buffer. This must be a writable buffer of
00244  *                 size \p olen Bytes.
00245  * \param olen     The length of the destination buffer. This must be at least
00246  *                 equal to `ctx->len` (the size of \c P).
00247  * \param f_rng    The RNG function. This must not be \c NULL.
00248  * \param p_rng    The RNG context to be passed to \p f_rng. This may be \c NULL
00249  *                 if \p f_rng doesn't need a context argument.
00250  *
00251  * \return         \c 0 on success.
00252  * \return         An \c MBEDTLS_ERR_DHM_XXX error code on failure.
00253  */
00254 int mbedtls_dhm_make_public( mbedtls_dhm_context *ctx, int x_size,
00255                      unsigned char *output, size_t olen,
00256                      int (*f_rng)(void *, unsigned char *, size_t),
00257                      void *p_rng );
00258 
00259 /**
00260  * \brief          This function derives and exports the shared secret
00261  *                 \c (G^Y)^X mod \c P.
00262  *
00263  * \note           If \p f_rng is not \c NULL, it is used to blind the input as
00264  *                 a countermeasure against timing attacks. Blinding is used
00265  *                 only if our private key \c X is re-used, and not used
00266  *                 otherwise. We recommend always passing a non-NULL
00267  *                 \p f_rng argument.
00268  *
00269  * \param ctx           The DHM context to use. This must be initialized
00270  *                      and have its own private key generated and the peer's
00271  *                      public key imported.
00272  * \param output        The buffer to write the generated shared key to. This
00273  *                      must be a writable buffer of size \p output_size Bytes.
00274  * \param output_size   The size of the destination buffer. This must be at
00275  *                      least the size of \c ctx->len (the size of \c P).
00276  * \param olen          On exit, holds the actual number of Bytes written.
00277  * \param f_rng         The RNG function, for blinding purposes. This may
00278  *                      b \c NULL if blinding isn't needed.
00279  * \param p_rng         The RNG context. This may be \c NULL if \p f_rng
00280  *                      doesn't need a context argument.
00281  *
00282  * \return              \c 0 on success.
00283  * \return              An \c MBEDTLS_ERR_DHM_XXX error code on failure.
00284  */
00285 int mbedtls_dhm_calc_secret( mbedtls_dhm_context *ctx,
00286                      unsigned char *output, size_t output_size, size_t *olen,
00287                      int (*f_rng)(void *, unsigned char *, size_t),
00288                      void *p_rng );
00289 
00290 /**
00291  * \brief          This function frees and clears the components
00292  *                 of a DHM context.
00293  *
00294  * \param ctx      The DHM context to free and clear. This may be \c NULL,
00295  *                 in which case this function is a no-op. If it is not \c NULL,
00296  *                 it must point to an initialized DHM context.
00297  */
00298 void mbedtls_dhm_free( mbedtls_dhm_context *ctx );
00299 
00300 #if defined(MBEDTLS_ASN1_PARSE_C)
00301 /**
00302  * \brief             This function parses DHM parameters in PEM or DER format.
00303  *
00304  * \param dhm         The DHM context to import the DHM parameters into.
00305  *                    This must be initialized.
00306  * \param dhmin       The input buffer. This must be a readable buffer of
00307  *                    length \p dhminlen Bytes.
00308  * \param dhminlen    The size of the input buffer \p dhmin, including the
00309  *                    terminating \c NULL Byte for PEM data.
00310  *
00311  * \return            \c 0 on success.
00312  * \return            An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX error
00313  *                    code on failure.
00314  */
00315 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin,
00316                            size_t dhminlen );
00317 
00318 #if defined(MBEDTLS_FS_IO)
00319 /**
00320  * \brief          This function loads and parses DHM parameters from a file.
00321  *
00322  * \param dhm      The DHM context to load the parameters to.
00323  *                 This must be initialized.
00324  * \param path     The filename to read the DHM parameters from.
00325  *                 This must not be \c NULL.
00326  *
00327  * \return         \c 0 on success.
00328  * \return         An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX
00329  *                 error code on failure.
00330  */
00331 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path );
00332 #endif /* MBEDTLS_FS_IO */
00333 #endif /* MBEDTLS_ASN1_PARSE_C */
00334 
00335 #if defined(MBEDTLS_SELF_TEST)
00336 
00337 /**
00338  * \brief          The DMH checkup routine.
00339  *
00340  * \return         \c 0 on success.
00341  * \return         \c 1 on failure.
00342  */
00343 int mbedtls_dhm_self_test( int verbose );
00344 
00345 #endif /* MBEDTLS_SELF_TEST */
00346 #ifdef __cplusplus
00347 }
00348 #endif
00349 
00350 /**
00351  * RFC 3526, RFC 5114 and RFC 7919 standardize a number of Diffie-Hellman
00352  * groups, some of which are included here for use by Mbed TLS's SSL/TLS module
00353  * and the user's convenience when configuring the Diffie-Hellman parameters by
00354  * hand through Mbed TLS's \c mbedtls_ssl_conf_dh_param.
00355  *
00356  * The following lists the source of the above groups in the standards:
00357  * - RFC 5114 section 2.2:  2048-bit MODP Group with 224-bit Prime Order Subgroup
00358  * - RFC 3526 section 3:    2048-bit MODP Group
00359  * - RFC 3526 section 4:    3072-bit MODP Group
00360  * - RFC 3526 section 5:    4096-bit MODP Group
00361  * - RFC 7919 section A.1:  ffdhe2048
00362  * - RFC 7919 section A.2:  ffdhe3072
00363  * - RFC 7919 section A.3:  ffdhe4096
00364  * - RFC 7919 section A.4:  ffdhe6144
00365  * - RFC 7919 section A.5:  ffdhe8192
00366  *
00367  * The constants with suffix "_p" denote the chosen prime moduli, while
00368  * the constants with suffix "_g" denote the chosen generator
00369  * of the associated prime field.
00370  *
00371  * The constants further suffixed with "_bin" are provided in binary format,
00372  * while all other constants represent null-terminated strings holding the
00373  * hexadecimal presentation of the respective numbers.
00374  *
00375  * The primes from RFC 3526 and RFC 7919 have been generating by the following
00376  * trust-worthy procedure:
00377  * - Fix N in { 2048, 3072, 4096, 6144, 8192 } and consider the N-bit number
00378  *   the first and last 64 bits are all 1, and the remaining N - 128 bits of
00379  *   which are 0x7ff...ff.
00380  * - Add the smallest multiple of the first N - 129 bits of the binary expansion
00381  *   of pi (for RFC 5236) or e (for RFC 7919) to this intermediate bit-string
00382  *   such that the resulting integer is a safe-prime.
00383  * - The result is the respective RFC 3526 / 7919 prime, and the corresponding
00384  *   generator is always chosen to be 2 (which is a square for these prime,
00385  *   hence the corresponding subgroup has order (p-1)/2 and avoids leaking a
00386  *   bit in the private exponent).
00387  *
00388  */
00389 
00390 #if !defined(MBEDTLS_DEPRECATED_REMOVED)
00391 
00392 /**
00393  * \warning The origin of the primes in RFC 5114 is not documented and
00394  *          their use therefore constitutes a security risk!
00395  *
00396  * \deprecated The hex-encoded primes from RFC 5114 are deprecated and are
00397  *             likely to be removed in a future version of the library without
00398  *             replacement.
00399  */
00400 
00401 /**
00402  * The hexadecimal presentation of the prime underlying the
00403  * 2048-bit MODP Group with 224-bit Prime Order Subgroup, as defined
00404  * in <em>RFC-5114: Additional Diffie-Hellman Groups for Use with
00405  * IETF Standards</em>.
00406  */
00407 #define MBEDTLS_DHM_RFC5114_MODP_2048_P                         \
00408     MBEDTLS_DEPRECATED_STRING_CONSTANT(                         \
00409         "AD107E1E9123A9D0D660FAA79559C51FA20D64E5683B9FD1"      \
00410         "B54B1597B61D0A75E6FA141DF95A56DBAF9A3C407BA1DF15"      \
00411         "EB3D688A309C180E1DE6B85A1274A0A66D3F8152AD6AC212"      \
00412         "9037C9EDEFDA4DF8D91E8FEF55B7394B7AD5B7D0B6C12207"      \
00413         "C9F98D11ED34DBF6C6BA0B2C8BBC27BE6A00E0A0B9C49708"      \
00414         "B3BF8A317091883681286130BC8985DB1602E714415D9330"      \
00415         "278273C7DE31EFDC7310F7121FD5A07415987D9ADC0A486D"      \
00416         "CDF93ACC44328387315D75E198C641A480CD86A1B9E587E8"      \
00417         "BE60E69CC928B2B9C52172E413042E9B23F10B0E16E79763"      \
00418         "C9B53DCF4BA80A29E3FB73C16B8E75B97EF363E2FFA31F71"      \
00419         "CF9DE5384E71B81C0AC4DFFE0C10E64F" )
00420 
00421 /**
00422  * The hexadecimal presentation of the chosen generator of the 2048-bit MODP
00423  * Group with 224-bit Prime Order Subgroup, as defined in <em>RFC-5114:
00424  * Additional Diffie-Hellman Groups for Use with IETF Standards</em>.
00425  */
00426 #define MBEDTLS_DHM_RFC5114_MODP_2048_G                         \
00427     MBEDTLS_DEPRECATED_STRING_CONSTANT(                         \
00428         "AC4032EF4F2D9AE39DF30B5C8FFDAC506CDEBE7B89998CAF"      \
00429         "74866A08CFE4FFE3A6824A4E10B9A6F0DD921F01A70C4AFA"      \
00430         "AB739D7700C29F52C57DB17C620A8652BE5E9001A8D66AD7"      \
00431         "C17669101999024AF4D027275AC1348BB8A762D0521BC98A"      \
00432         "E247150422EA1ED409939D54DA7460CDB5F6C6B250717CBE"      \
00433         "F180EB34118E98D119529A45D6F834566E3025E316A330EF"      \
00434         "BB77A86F0C1AB15B051AE3D428C8F8ACB70A8137150B8EEB"      \
00435         "10E183EDD19963DDD9E263E4770589EF6AA21E7F5F2FF381"      \
00436         "B539CCE3409D13CD566AFBB48D6C019181E1BCFE94B30269"      \
00437         "EDFE72FE9B6AA4BD7B5A0F1C71CFFF4C19C418E1F6EC0179"      \
00438         "81BC087F2A7065B384B890D3191F2BFA" )
00439 
00440 /**
00441  * The hexadecimal presentation of the prime underlying the 2048-bit MODP
00442  * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
00443  * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
00444  *
00445  * \deprecated The hex-encoded primes from RFC 3625 are deprecated and
00446  *             superseded by the corresponding macros providing them as
00447  *             binary constants. Their hex-encoded constants are likely
00448  *             to be removed in a future version of the library.
00449  *
00450  */
00451 #define MBEDTLS_DHM_RFC3526_MODP_2048_P                         \
00452     MBEDTLS_DEPRECATED_STRING_CONSTANT(                         \
00453         "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1"      \
00454         "29024E088A67CC74020BBEA63B139B22514A08798E3404DD"      \
00455         "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245"      \
00456         "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED"      \
00457         "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D"      \
00458         "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F"      \
00459         "83655D23DCA3AD961C62F356208552BB9ED529077096966D"      \
00460         "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B"      \
00461         "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9"      \
00462         "DE2BCBF6955817183995497CEA956AE515D2261898FA0510"      \
00463         "15728E5A8AACAA68FFFFFFFFFFFFFFFF" )
00464 
00465 /**
00466  * The hexadecimal presentation of the chosen generator of the 2048-bit MODP
00467  * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
00468  * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
00469  */
00470 #define MBEDTLS_DHM_RFC3526_MODP_2048_G                         \
00471     MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" )
00472 
00473 /**
00474  * The hexadecimal presentation of the prime underlying the 3072-bit MODP
00475  * Group, as defined in <em>RFC-3072: More Modular Exponential (MODP)
00476  * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
00477  */
00478 #define MBEDTLS_DHM_RFC3526_MODP_3072_P                         \
00479     MBEDTLS_DEPRECATED_STRING_CONSTANT(                         \
00480         "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1"      \
00481         "29024E088A67CC74020BBEA63B139B22514A08798E3404DD"      \
00482         "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245"      \
00483         "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED"      \
00484         "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D"      \
00485         "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F"      \
00486         "83655D23DCA3AD961C62F356208552BB9ED529077096966D"      \
00487         "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B"      \
00488         "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9"      \
00489         "DE2BCBF6955817183995497CEA956AE515D2261898FA0510"      \
00490         "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64"      \
00491         "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7"      \
00492         "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B"      \
00493         "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C"      \
00494         "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31"      \
00495         "43DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF" )
00496 
00497 /**
00498  * The hexadecimal presentation of the chosen generator of the 3072-bit MODP
00499  * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
00500  * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
00501  */
00502 #define MBEDTLS_DHM_RFC3526_MODP_3072_G                      \
00503     MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" )
00504 
00505 /**
00506  * The hexadecimal presentation of the prime underlying the 4096-bit MODP
00507  * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
00508  * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
00509  */
00510 #define MBEDTLS_DHM_RFC3526_MODP_4096_P                      \
00511     MBEDTLS_DEPRECATED_STRING_CONSTANT(                      \
00512         "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1"   \
00513         "29024E088A67CC74020BBEA63B139B22514A08798E3404DD"   \
00514         "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245"   \
00515         "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED"   \
00516         "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D"   \
00517         "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F"   \
00518         "83655D23DCA3AD961C62F356208552BB9ED529077096966D"   \
00519         "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B"   \
00520         "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9"   \
00521         "DE2BCBF6955817183995497CEA956AE515D2261898FA0510"   \
00522         "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64"   \
00523         "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7"   \
00524         "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B"   \
00525         "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C"   \
00526         "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31"   \
00527         "43DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D7"   \
00528         "88719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA"   \
00529         "2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6"   \
00530         "287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED"   \
00531         "1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA9"   \
00532         "93B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199"   \
00533         "FFFFFFFFFFFFFFFF" )
00534 
00535 /**
00536  * The hexadecimal presentation of the chosen generator of the 4096-bit MODP
00537  * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP)
00538  * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>.
00539  */
00540 #define MBEDTLS_DHM_RFC3526_MODP_4096_G                      \
00541     MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" )
00542 
00543 #endif /* MBEDTLS_DEPRECATED_REMOVED */
00544 
00545 /*
00546  * Trustworthy DHM parameters in binary form
00547  */
00548 
00549 #define MBEDTLS_DHM_RFC3526_MODP_2048_P_BIN {        \
00550      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
00551      0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \
00552      0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \
00553      0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \
00554      0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \
00555      0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \
00556      0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \
00557      0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \
00558      0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \
00559      0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \
00560      0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \
00561      0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \
00562      0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \
00563      0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \
00564      0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \
00565      0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \
00566      0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \
00567      0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \
00568      0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \
00569      0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \
00570      0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \
00571      0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \
00572      0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \
00573      0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \
00574      0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \
00575      0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \
00576      0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \
00577      0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \
00578      0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \
00579      0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \
00580      0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAC, 0xAA, 0x68, \
00581      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
00582 
00583 #define MBEDTLS_DHM_RFC3526_MODP_2048_G_BIN { 0x02 }
00584 
00585 #define MBEDTLS_DHM_RFC3526_MODP_3072_P_BIN {       \
00586     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
00587     0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \
00588     0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \
00589     0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \
00590     0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \
00591     0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \
00592     0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \
00593     0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \
00594     0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \
00595     0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \
00596     0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \
00597     0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \
00598     0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \
00599     0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \
00600     0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \
00601     0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \
00602     0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \
00603     0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \
00604     0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \
00605     0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \
00606     0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \
00607     0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \
00608     0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \
00609     0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \
00610     0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \
00611     0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \
00612     0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \
00613     0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \
00614     0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \
00615     0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \
00616     0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, \
00617     0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33, \
00618     0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, \
00619     0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, \
00620     0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D, \
00621     0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, \
00622     0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, \
00623     0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D, \
00624     0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, \
00625     0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, \
00626     0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64, \
00627     0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, \
00628     0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, \
00629     0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2, \
00630     0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, \
00631     0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, \
00632     0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x3A, 0xD2, 0xCA, \
00633     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
00634 
00635 #define MBEDTLS_DHM_RFC3526_MODP_3072_G_BIN { 0x02 }
00636 
00637 #define MBEDTLS_DHM_RFC3526_MODP_4096_P_BIN  {       \
00638     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,  \
00639     0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34,  \
00640     0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1,  \
00641     0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74,  \
00642     0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22,  \
00643     0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD,  \
00644     0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B,  \
00645     0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37,  \
00646     0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45,  \
00647     0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6,  \
00648     0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B,  \
00649     0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED,  \
00650     0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5,  \
00651     0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6,  \
00652     0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D,  \
00653     0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05,  \
00654     0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A,  \
00655     0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F,  \
00656     0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96,  \
00657     0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB,  \
00658     0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D,  \
00659     0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04,  \
00660     0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C,  \
00661     0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B,  \
00662     0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03,  \
00663     0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F,  \
00664     0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9,  \
00665     0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18,  \
00666     0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5,  \
00667     0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10,  \
00668     0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D,  \
00669     0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33,  \
00670     0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64,  \
00671     0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A,  \
00672     0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D,  \
00673     0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7,  \
00674     0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7,  \
00675     0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D,  \
00676     0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B,  \
00677     0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64,  \
00678     0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64,  \
00679     0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C,  \
00680     0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C,  \
00681     0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2,  \
00682     0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31,  \
00683     0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E,  \
00684     0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x21, 0x08, 0x01,  \
00685     0x1A, 0x72, 0x3C, 0x12, 0xA7, 0x87, 0xE6, 0xD7,  \
00686     0x88, 0x71, 0x9A, 0x10, 0xBD, 0xBA, 0x5B, 0x26,  \
00687     0x99, 0xC3, 0x27, 0x18, 0x6A, 0xF4, 0xE2, 0x3C,  \
00688     0x1A, 0x94, 0x68, 0x34, 0xB6, 0x15, 0x0B, 0xDA,  \
00689     0x25, 0x83, 0xE9, 0xCA, 0x2A, 0xD4, 0x4C, 0xE8,  \
00690     0xDB, 0xBB, 0xC2, 0xDB, 0x04, 0xDE, 0x8E, 0xF9,  \
00691     0x2E, 0x8E, 0xFC, 0x14, 0x1F, 0xBE, 0xCA, 0xA6,  \
00692     0x28, 0x7C, 0x59, 0x47, 0x4E, 0x6B, 0xC0, 0x5D,  \
00693     0x99, 0xB2, 0x96, 0x4F, 0xA0, 0x90, 0xC3, 0xA2,  \
00694     0x23, 0x3B, 0xA1, 0x86, 0x51, 0x5B, 0xE7, 0xED,  \
00695     0x1F, 0x61, 0x29, 0x70, 0xCE, 0xE2, 0xD7, 0xAF,  \
00696     0xB8, 0x1B, 0xDD, 0x76, 0x21, 0x70, 0x48, 0x1C,  \
00697     0xD0, 0x06, 0x91, 0x27, 0xD5, 0xB0, 0x5A, 0xA9,  \
00698     0x93, 0xB4, 0xEA, 0x98, 0x8D, 0x8F, 0xDD, 0xC1,  \
00699     0x86, 0xFF, 0xB7, 0xDC, 0x90, 0xA6, 0xC0, 0x8F,  \
00700     0x4D, 0xF4, 0x35, 0xC9, 0x34, 0x06, 0x31, 0x99,  \
00701     0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
00702 
00703 #define MBEDTLS_DHM_RFC3526_MODP_4096_G_BIN { 0x02 }
00704 
00705 #define MBEDTLS_DHM_RFC7919_FFDHE2048_P_BIN {        \
00706      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
00707      0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
00708      0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
00709      0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
00710      0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
00711      0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
00712      0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
00713      0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
00714      0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
00715      0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
00716      0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
00717      0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
00718      0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
00719      0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
00720      0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
00721      0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
00722      0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
00723      0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
00724      0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
00725      0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
00726      0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
00727      0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
00728      0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
00729      0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
00730      0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
00731      0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
00732      0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
00733      0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
00734      0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
00735      0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
00736      0x88, 0x6B, 0x42, 0x38, 0x61, 0x28, 0x5C, 0x97, \
00737      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, }
00738 
00739 #define MBEDTLS_DHM_RFC7919_FFDHE2048_G_BIN { 0x02 }
00740 
00741 #define MBEDTLS_DHM_RFC7919_FFDHE3072_P_BIN { \
00742      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
00743      0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
00744      0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
00745      0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
00746      0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
00747      0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
00748      0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
00749      0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
00750      0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
00751      0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
00752      0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
00753      0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
00754      0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
00755      0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
00756      0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
00757      0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
00758      0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
00759      0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
00760      0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
00761      0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
00762      0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
00763      0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
00764      0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
00765      0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
00766      0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
00767      0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
00768      0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
00769      0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
00770      0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
00771      0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
00772      0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
00773      0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
00774      0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
00775      0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
00776      0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
00777      0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
00778      0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
00779      0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
00780      0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
00781      0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
00782      0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
00783      0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
00784      0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
00785      0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
00786      0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
00787      0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
00788      0x25, 0xE4, 0x1D, 0x2B, 0x66, 0xC6, 0x2E, 0x37, \
00789      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
00790 
00791 #define MBEDTLS_DHM_RFC7919_FFDHE3072_G_BIN { 0x02 }
00792 
00793 #define MBEDTLS_DHM_RFC7919_FFDHE4096_P_BIN {        \
00794      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
00795      0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
00796      0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
00797      0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
00798      0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
00799      0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
00800      0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
00801      0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
00802      0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
00803      0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
00804      0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
00805      0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
00806      0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
00807      0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
00808      0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
00809      0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
00810      0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
00811      0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
00812      0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
00813      0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
00814      0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
00815      0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
00816      0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
00817      0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
00818      0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
00819      0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
00820      0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
00821      0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
00822      0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
00823      0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
00824      0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
00825      0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
00826      0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
00827      0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
00828      0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
00829      0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
00830      0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
00831      0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
00832      0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
00833      0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
00834      0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
00835      0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
00836      0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
00837      0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
00838      0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
00839      0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
00840      0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
00841      0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
00842      0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
00843      0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
00844      0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
00845      0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
00846      0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
00847      0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
00848      0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
00849      0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
00850      0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
00851      0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
00852      0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
00853      0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
00854      0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
00855      0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
00856      0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x65, 0x5F, 0x6A, \
00857      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
00858 
00859 #define MBEDTLS_DHM_RFC7919_FFDHE4096_G_BIN { 0x02 }
00860 
00861 #define MBEDTLS_DHM_RFC7919_FFDHE6144_P_BIN {        \
00862      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
00863      0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
00864      0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
00865      0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
00866      0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
00867      0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
00868      0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
00869      0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
00870      0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
00871      0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
00872      0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
00873      0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
00874      0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
00875      0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
00876      0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
00877      0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
00878      0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
00879      0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
00880      0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
00881      0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
00882      0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
00883      0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
00884      0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
00885      0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
00886      0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
00887      0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
00888      0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
00889      0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
00890      0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
00891      0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
00892      0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
00893      0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
00894      0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
00895      0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
00896      0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
00897      0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
00898      0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
00899      0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
00900      0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
00901      0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
00902      0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
00903      0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
00904      0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
00905      0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
00906      0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
00907      0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
00908      0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
00909      0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
00910      0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
00911      0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
00912      0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
00913      0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
00914      0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
00915      0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
00916      0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
00917      0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
00918      0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
00919      0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
00920      0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
00921      0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
00922      0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
00923      0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
00924      0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, \
00925      0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, \
00926      0x4E, 0x67, 0x7D, 0x2C, 0x38, 0x53, 0x2A, 0x3A, \
00927      0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, \
00928      0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, \
00929      0x91, 0x7B, 0xDD, 0x64, 0xB1, 0xC0, 0xFD, 0x4C, \
00930      0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, \
00931      0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, \
00932      0x9B, 0x1F, 0x5C, 0x3E, 0x4E, 0x46, 0x04, 0x1F, \
00933      0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, \
00934      0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, \
00935      0xB8, 0x55, 0x32, 0x2E, 0xDB, 0x63, 0x40, 0xD8, \
00936      0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, \
00937      0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, \
00938      0x7F, 0xB2, 0x9F, 0x8C, 0x18, 0x30, 0x23, 0xC3, \
00939      0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, \
00940      0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, \
00941      0x94, 0xC6, 0x65, 0x1E, 0x77, 0xCA, 0xF9, 0x92, \
00942      0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, \
00943      0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, \
00944      0x0A, 0xE8, 0xDB, 0x58, 0x47, 0xA6, 0x7C, 0xBE, \
00945      0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \
00946      0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \
00947      0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \
00948      0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \
00949      0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \
00950      0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \
00951      0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \
00952      0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \
00953      0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \
00954      0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \
00955      0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \
00956      0xA4, 0x0E, 0x32, 0x9C, 0xD0, 0xE4, 0x0E, 0x65, \
00957      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
00958 
00959 #define MBEDTLS_DHM_RFC7919_FFDHE6144_G_BIN { 0x02 }
00960 
00961 #define MBEDTLS_DHM_RFC7919_FFDHE8192_P_BIN {        \
00962      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \
00963      0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \
00964      0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \
00965      0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \
00966      0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \
00967      0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \
00968      0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \
00969      0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \
00970      0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \
00971      0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \
00972      0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \
00973      0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \
00974      0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \
00975      0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \
00976      0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \
00977      0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \
00978      0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \
00979      0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \
00980      0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \
00981      0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \
00982      0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \
00983      0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \
00984      0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \
00985      0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \
00986      0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \
00987      0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \
00988      0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \
00989      0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \
00990      0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \
00991      0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \
00992      0x88, 0x6B, 0x42, 0x38, 0x61, 0x1F, 0xCF, 0xDC, \
00993      0xDE, 0x35, 0x5B, 0x3B, 0x65, 0x19, 0x03, 0x5B, \
00994      0xBC, 0x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \
00995      0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \
00996      0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \
00997      0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \
00998      0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \
00999      0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \
01000      0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \
01001      0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \
01002      0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \
01003      0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \
01004      0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \
01005      0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \
01006      0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \
01007      0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \
01008      0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \
01009      0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \
01010      0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \
01011      0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \
01012      0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \
01013      0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \
01014      0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \
01015      0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \
01016      0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \
01017      0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \
01018      0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \
01019      0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \
01020      0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \
01021      0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \
01022      0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \
01023      0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \
01024      0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, \
01025      0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, \
01026      0x4E, 0x67, 0x7D, 0x2C, 0x38, 0x53, 0x2A, 0x3A, \
01027      0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, \
01028      0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, \
01029      0x91, 0x7B, 0xDD, 0x64, 0xB1, 0xC0, 0xFD, 0x4C, \
01030      0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, \
01031      0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, \
01032      0x9B, 0x1F, 0x5C, 0x3E, 0x4E, 0x46, 0x04, 0x1F, \
01033      0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, \
01034      0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, \
01035      0xB8, 0x55, 0x32, 0x2E, 0xDB, 0x63, 0x40, 0xD8, \
01036      0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, \
01037      0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, \
01038      0x7F, 0xB2, 0x9F, 0x8C, 0x18, 0x30, 0x23, 0xC3, \
01039      0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, \
01040      0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, \
01041      0x94, 0xC6, 0x65, 0x1E, 0x77, 0xCA, 0xF9, 0x92, \
01042      0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, \
01043      0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, \
01044      0x0A, 0xE8, 0xDB, 0x58, 0x47, 0xA6, 0x7C, 0xBE, \
01045      0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \
01046      0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \
01047      0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \
01048      0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \
01049      0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \
01050      0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \
01051      0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \
01052      0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \
01053      0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \
01054      0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \
01055      0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \
01056      0xA4, 0x0E, 0x32, 0x9C, 0xCF, 0xF4, 0x6A, 0xAA, \
01057      0x36, 0xAD, 0x00, 0x4C, 0xF6, 0x00, 0xC8, 0x38, \
01058      0x1E, 0x42, 0x5A, 0x31, 0xD9, 0x51, 0xAE, 0x64, \
01059      0xFD, 0xB2, 0x3F, 0xCE, 0xC9, 0x50, 0x9D, 0x43, \
01060      0x68, 0x7F, 0xEB, 0x69, 0xED, 0xD1, 0xCC, 0x5E, \
01061      0x0B, 0x8C, 0xC3, 0xBD, 0xF6, 0x4B, 0x10, 0xEF, \
01062      0x86, 0xB6, 0x31, 0x42, 0xA3, 0xAB, 0x88, 0x29, \
01063      0x55, 0x5B, 0x2F, 0x74, 0x7C, 0x93, 0x26, 0x65, \
01064      0xCB, 0x2C, 0x0F, 0x1C, 0xC0, 0x1B, 0xD7, 0x02, \
01065      0x29, 0x38, 0x88, 0x39, 0xD2, 0xAF, 0x05, 0xE4, \
01066      0x54, 0x50, 0x4A, 0xC7, 0x8B, 0x75, 0x82, 0x82, \
01067      0x28, 0x46, 0xC0, 0xBA, 0x35, 0xC3, 0x5F, 0x5C, \
01068      0x59, 0x16, 0x0C, 0xC0, 0x46, 0xFD, 0x82, 0x51, \
01069      0x54, 0x1F, 0xC6, 0x8C, 0x9C, 0x86, 0xB0, 0x22, \
01070      0xBB, 0x70, 0x99, 0x87, 0x6A, 0x46, 0x0E, 0x74, \
01071      0x51, 0xA8, 0xA9, 0x31, 0x09, 0x70, 0x3F, 0xEE, \
01072      0x1C, 0x21, 0x7E, 0x6C, 0x38, 0x26, 0xE5, 0x2C, \
01073      0x51, 0xAA, 0x69, 0x1E, 0x0E, 0x42, 0x3C, 0xFC, \
01074      0x99, 0xE9, 0xE3, 0x16, 0x50, 0xC1, 0x21, 0x7B, \
01075      0x62, 0x48, 0x16, 0xCD, 0xAD, 0x9A, 0x95, 0xF9, \
01076      0xD5, 0xB8, 0x01, 0x94, 0x88, 0xD9, 0xC0, 0xA0, \
01077      0xA1, 0xFE, 0x30, 0x75, 0xA5, 0x77, 0xE2, 0x31, \
01078      0x83, 0xF8, 0x1D, 0x4A, 0x3F, 0x2F, 0xA4, 0x57, \
01079      0x1E, 0xFC, 0x8C, 0xE0, 0xBA, 0x8A, 0x4F, 0xE8, \
01080      0xB6, 0x85, 0x5D, 0xFE, 0x72, 0xB0, 0xA6, 0x6E, \
01081      0xDE, 0xD2, 0xFB, 0xAB, 0xFB, 0xE5, 0x8A, 0x30, \
01082      0xFA, 0xFA, 0xBE, 0x1C, 0x5D, 0x71, 0xA8, 0x7E, \
01083      0x2F, 0x74, 0x1E, 0xF8, 0xC1, 0xFE, 0x86, 0xFE, \
01084      0xA6, 0xBB, 0xFD, 0xE5, 0x30, 0x67, 0x7F, 0x0D, \
01085      0x97, 0xD1, 0x1D, 0x49, 0xF7, 0xA8, 0x44, 0x3D, \
01086      0x08, 0x22, 0xE5, 0x06, 0xA9, 0xF4, 0x61, 0x4E, \
01087      0x01, 0x1E, 0x2A, 0x94, 0x83, 0x8F, 0xF8, 0x8C, \
01088      0xD6, 0x8C, 0x8B, 0xB7, 0xC5, 0xC6, 0x42, 0x4C, \
01089      0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF }
01090 
01091 #define MBEDTLS_DHM_RFC7919_FFDHE8192_G_BIN { 0x02 }
01092 
01093 #endif /* dhm.h */