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 (C) 2006-2018, Arm Limited (or its affiliates), All Rights Reserved 48 * SPDX-License-Identifier: GPL-2.0 49 * 50 * This program is free software; you can redistribute it and/or modify 51 * it under the terms of the GNU General Public License as published by 52 * the Free Software Foundation; either version 2 of the License, or 53 * (at your option) any later version. 54 * 55 * This program is distributed in the hope that it will be useful, 56 * but WITHOUT ANY WARRANTY; without even the implied warranty of 57 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 58 * GNU General Public License for more details. 59 * 60 * You should have received a copy of the GNU General Public License along 61 * with this program; if not, write to the Free Software Foundation, Inc., 62 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 63 * 64 * This file is part of Mbed TLS (https://tls.mbed.org) 65 */ 66 67 #ifndef MBEDTLS_DHM_H 68 #define MBEDTLS_DHM_H 69 70 #if !defined(MBEDTLS_CONFIG_FILE) 71 #include "config.h" 72 #else 73 #include MBEDTLS_CONFIG_FILE 74 #endif 75 #include "bignum.h" 76 77 /* 78 * DHM Error codes 79 */ 80 #define MBEDTLS_ERR_DHM_BAD_INPUT_DATA -0x3080 /**< Bad input parameters. */ 81 #define MBEDTLS_ERR_DHM_READ_PARAMS_FAILED -0x3100 /**< Reading of the DHM parameters failed. */ 82 #define MBEDTLS_ERR_DHM_MAKE_PARAMS_FAILED -0x3180 /**< Making of the DHM parameters failed. */ 83 #define MBEDTLS_ERR_DHM_READ_PUBLIC_FAILED -0x3200 /**< Reading of the public values failed. */ 84 #define MBEDTLS_ERR_DHM_MAKE_PUBLIC_FAILED -0x3280 /**< Making of the public value failed. */ 85 #define MBEDTLS_ERR_DHM_CALC_SECRET_FAILED -0x3300 /**< Calculation of the DHM secret failed. */ 86 #define MBEDTLS_ERR_DHM_INVALID_FORMAT -0x3380 /**< The ASN.1 data is not formatted correctly. */ 87 #define MBEDTLS_ERR_DHM_ALLOC_FAILED -0x3400 /**< Allocation of memory failed. */ 88 #define MBEDTLS_ERR_DHM_FILE_IO_ERROR -0x3480 /**< Read or write of file failed. */ 89 90 /* MBEDTLS_ERR_DHM_HW_ACCEL_FAILED is deprecated and should not be used. */ 91 #define MBEDTLS_ERR_DHM_HW_ACCEL_FAILED -0x3500 /**< DHM hardware accelerator failed. */ 92 93 #define MBEDTLS_ERR_DHM_SET_GROUP_FAILED -0x3580 /**< Setting the modulus and generator failed. */ 94 95 #ifdef __cplusplus 96 extern "C" { 97 #endif 98 99 #if !defined(MBEDTLS_DHM_ALT) 100 101 /** 102 * \brief The DHM context structure. 103 */ 104 typedef struct mbedtls_dhm_context 105 { 106 size_t len; /*!< The size of \p P in Bytes. */ 107 mbedtls_mpi P; /*!< The prime modulus. */ 108 mbedtls_mpi G; /*!< The generator. */ 109 mbedtls_mpi X; /*!< Our secret value. */ 110 mbedtls_mpi GX; /*!< Our public key = \c G^X mod \c P. */ 111 mbedtls_mpi GY; /*!< The public key of the peer = \c G^Y mod \c P. */ 112 mbedtls_mpi K; /*!< The shared secret = \c G^(XY) mod \c P. */ 113 mbedtls_mpi RP; /*!< The cached value = \c R^2 mod \c P. */ 114 mbedtls_mpi Vi; /*!< The blinding value. */ 115 mbedtls_mpi Vf; /*!< The unblinding value. */ 116 mbedtls_mpi pX; /*!< The previous \c X. */ 117 } 118 mbedtls_dhm_context; 119 120 #else /* MBEDTLS_DHM_ALT */ 121 #include "dhm_alt.h" 122 #endif /* MBEDTLS_DHM_ALT */ 123 124 /** 125 * \brief This function initializes the DHM context. 126 * 127 * \param ctx The DHM context to initialize. 128 */ 129 void mbedtls_dhm_init( mbedtls_dhm_context *ctx ); 130 131 /** 132 * \brief This function parses the DHM parameters in a 133 * TLS ServerKeyExchange handshake message 134 * (DHM modulus, generator, and public key). 135 * 136 * \note In a TLS handshake, this is the how the client 137 * sets up its DHM context from the server's public 138 * DHM key material. 139 * 140 * \param ctx The DHM context to use. This must be initialized. 141 * \param p On input, *p must be the start of the input buffer. 142 * On output, *p is updated to point to the end of the data 143 * that has been read. On success, this is the first byte 144 * past the end of the ServerKeyExchange parameters. 145 * On error, this is the point at which an error has been 146 * detected, which is usually not useful except to debug 147 * failures. 148 * \param end The end of the input buffer. 149 * 150 * \return \c 0 on success. 151 * \return An \c MBEDTLS_ERR_DHM_XXX error code on failure. 152 */ 153 int mbedtls_dhm_read_params( mbedtls_dhm_context *ctx, 154 unsigned char **p, 155 const unsigned char *end ); 156 157 /** 158 * \brief This function generates a DHM key pair and exports its 159 * public part together with the DHM parameters in the format 160 * used in a TLS ServerKeyExchange handshake message. 161 * 162 * \note This function assumes that the DHM parameters \c ctx->P 163 * and \c ctx->G have already been properly set. For that, use 164 * mbedtls_dhm_set_group() below in conjunction with 165 * mbedtls_mpi_read_binary() and mbedtls_mpi_read_string(). 166 * 167 * \note In a TLS handshake, this is the how the server generates 168 * and exports its DHM key material. 169 * 170 * \param ctx The DHM context to use. This must be initialized 171 * and have the DHM parameters set. It may or may not 172 * already have imported the peer's public key. 173 * \param x_size The private key size in Bytes. 174 * \param olen The address at which to store the number of Bytes 175 * written on success. This must not be \c NULL. 176 * \param output The destination buffer. This must be a writable buffer of 177 * sufficient size to hold the reduced binary presentation of 178 * the modulus, the generator and the public key, each wrapped 179 * with a 2-byte length field. It is the responsibility of the 180 * caller to ensure that enough space is available. Refer to 181 * mbedtls_mpi_size() to computing the byte-size of an MPI. 182 * \param f_rng The RNG function. Must not be \c NULL. 183 * \param p_rng The RNG context to be passed to \p f_rng. This may be 184 * \c NULL if \p f_rng doesn't need a context parameter. 185 * 186 * \return \c 0 on success. 187 * \return An \c MBEDTLS_ERR_DHM_XXX error code on failure. 188 */ 189 int mbedtls_dhm_make_params( mbedtls_dhm_context *ctx, int x_size, 190 unsigned char *output, size_t *olen, 191 int (*f_rng)(void *, unsigned char *, size_t), 192 void *p_rng ); 193 194 /** 195 * \brief This function sets the prime modulus and generator. 196 * 197 * \note This function can be used to set \c ctx->P, \c ctx->G 198 * in preparation for mbedtls_dhm_make_params(). 199 * 200 * \param ctx The DHM context to configure. This must be initialized. 201 * \param P The MPI holding the DHM prime modulus. This must be 202 * an initialized MPI. 203 * \param G The MPI holding the DHM generator. This must be an 204 * initialized MPI. 205 * 206 * \return \c 0 if successful. 207 * \return An \c MBEDTLS_ERR_DHM_XXX error code on failure. 208 */ 209 int mbedtls_dhm_set_group( mbedtls_dhm_context *ctx, 210 const mbedtls_mpi *P, 211 const mbedtls_mpi *G ); 212 213 /** 214 * \brief This function imports the raw public value of the peer. 215 * 216 * \note In a TLS handshake, this is the how the server imports 217 * the Client's public DHM key. 218 * 219 * \param ctx The DHM context to use. This must be initialized and have 220 * its DHM parameters set, e.g. via mbedtls_dhm_set_group(). 221 * It may or may not already have generated its own private key. 222 * \param input The input buffer containing the \c G^Y value of the peer. 223 * This must be a readable buffer of size \p ilen Bytes. 224 * \param ilen The size of the input buffer \p input in Bytes. 225 * 226 * \return \c 0 on success. 227 * \return An \c MBEDTLS_ERR_DHM_XXX error code on failure. 228 */ 229 int mbedtls_dhm_read_public( mbedtls_dhm_context *ctx, 230 const unsigned char *input, size_t ilen ); 231 232 /** 233 * \brief This function creates a DHM key pair and exports 234 * the raw public key in big-endian format. 235 * 236 * \note The destination buffer is always fully written 237 * so as to contain a big-endian representation of G^X mod P. 238 * If it is larger than \c ctx->len, it is padded accordingly 239 * with zero-bytes at the beginning. 240 * 241 * \param ctx The DHM context to use. This must be initialized and 242 * have the DHM parameters set. It may or may not already 243 * have imported the peer's public key. 244 * \param x_size The private key size in Bytes. 245 * \param output The destination buffer. This must be a writable buffer of 246 * size \p olen Bytes. 247 * \param olen The length of the destination buffer. This must be at least 248 * equal to `ctx->len` (the size of \c P). 249 * \param f_rng The RNG function. This must not be \c NULL. 250 * \param p_rng The RNG context to be passed to \p f_rng. This may be \c NULL 251 * if \p f_rng doesn't need a context argument. 252 * 253 * \return \c 0 on success. 254 * \return An \c MBEDTLS_ERR_DHM_XXX error code on failure. 255 */ 256 int mbedtls_dhm_make_public( mbedtls_dhm_context *ctx, int x_size, 257 unsigned char *output, size_t olen, 258 int (*f_rng)(void *, unsigned char *, size_t), 259 void *p_rng ); 260 261 /** 262 * \brief This function derives and exports the shared secret 263 * \c (G^Y)^X mod \c P. 264 * 265 * \note If \p f_rng is not \c NULL, it is used to blind the input as 266 * a countermeasure against timing attacks. Blinding is used 267 * only if our private key \c X is re-used, and not used 268 * otherwise. We recommend always passing a non-NULL 269 * \p f_rng argument. 270 * 271 * \param ctx The DHM context to use. This must be initialized 272 * and have its own private key generated and the peer's 273 * public key imported. 274 * \param output The buffer to write the generated shared key to. This 275 * must be a writable buffer of size \p output_size Bytes. 276 * \param output_size The size of the destination buffer. This must be at 277 * least the size of \c ctx->len (the size of \c P). 278 * \param olen On exit, holds the actual number of Bytes written. 279 * \param f_rng The RNG function, for blinding purposes. This may 280 * b \c NULL if blinding isn't needed. 281 * \param p_rng The RNG context. This may be \c NULL if \p f_rng 282 * doesn't need a context argument. 283 * 284 * \return \c 0 on success. 285 * \return An \c MBEDTLS_ERR_DHM_XXX error code on failure. 286 */ 287 int mbedtls_dhm_calc_secret( mbedtls_dhm_context *ctx, 288 unsigned char *output, size_t output_size, size_t *olen, 289 int (*f_rng)(void *, unsigned char *, size_t), 290 void *p_rng ); 291 292 /** 293 * \brief This function frees and clears the components 294 * of a DHM context. 295 * 296 * \param ctx The DHM context to free and clear. This may be \c NULL, 297 * in which case this function is a no-op. If it is not \c NULL, 298 * it must point to an initialized DHM context. 299 */ 300 void mbedtls_dhm_free( mbedtls_dhm_context *ctx ); 301 302 #if defined(MBEDTLS_ASN1_PARSE_C) 303 /** \ingroup x509_module */ 304 /** 305 * \brief This function parses DHM parameters in PEM or DER format. 306 * 307 * \param dhm The DHM context to import the DHM parameters into. 308 * This must be initialized. 309 * \param dhmin The input buffer. This must be a readable buffer of 310 * length \p dhminlen Bytes. 311 * \param dhminlen The size of the input buffer \p dhmin, including the 312 * terminating \c NULL Byte for PEM data. 313 * 314 * \return \c 0 on success. 315 * \return An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX error 316 * code on failure. 317 */ 318 int mbedtls_dhm_parse_dhm( mbedtls_dhm_context *dhm, const unsigned char *dhmin, 319 size_t dhminlen ); 320 321 #if defined(MBEDTLS_FS_IO) 322 /** \ingroup x509_module */ 323 /** 324 * \brief This function loads and parses DHM parameters from a file. 325 * 326 * \param dhm The DHM context to load the parameters to. 327 * This must be initialized. 328 * \param path The filename to read the DHM parameters from. 329 * This must not be \c NULL. 330 * 331 * \return \c 0 on success. 332 * \return An \c MBEDTLS_ERR_DHM_XXX or \c MBEDTLS_ERR_PEM_XXX 333 * error code on failure. 334 */ 335 int mbedtls_dhm_parse_dhmfile( mbedtls_dhm_context *dhm, const char *path ); 336 #endif /* MBEDTLS_FS_IO */ 337 #endif /* MBEDTLS_ASN1_PARSE_C */ 338 339 /** 340 * \brief The DMH checkup routine. 341 * 342 * \return \c 0 on success. 343 * \return \c 1 on failure. 344 */ 345 int mbedtls_dhm_self_test( int verbose ); 346 347 #ifdef __cplusplus 348 } 349 #endif 350 351 /** 352 * RFC 3526, RFC 5114 and RFC 7919 standardize a number of 353 * Diffie-Hellman groups, some of which are included here 354 * for use within the SSL/TLS module and the user's convenience 355 * when configuring the Diffie-Hellman parameters by hand 356 * through \c mbedtls_ssl_conf_dh_param. 357 * 358 * The following lists the source of the above groups in the standards: 359 * - RFC 5114 section 2.2: 2048-bit MODP Group with 224-bit Prime Order Subgroup 360 * - RFC 3526 section 3: 2048-bit MODP Group 361 * - RFC 3526 section 4: 3072-bit MODP Group 362 * - RFC 3526 section 5: 4096-bit MODP Group 363 * - RFC 7919 section A.1: ffdhe2048 364 * - RFC 7919 section A.2: ffdhe3072 365 * - RFC 7919 section A.3: ffdhe4096 366 * - RFC 7919 section A.4: ffdhe6144 367 * - RFC 7919 section A.5: ffdhe8192 368 * 369 * The constants with suffix "_p" denote the chosen prime moduli, while 370 * the constants with suffix "_g" denote the chosen generator 371 * of the associated prime field. 372 * 373 * The constants further suffixed with "_bin" are provided in binary format, 374 * while all other constants represent null-terminated strings holding the 375 * hexadecimal presentation of the respective numbers. 376 * 377 * The primes from RFC 3526 and RFC 7919 have been generating by the following 378 * trust-worthy procedure: 379 * - Fix N in { 2048, 3072, 4096, 6144, 8192 } and consider the N-bit number 380 * the first and last 64 bits are all 1, and the remaining N - 128 bits of 381 * which are 0x7ff...ff. 382 * - Add the smallest multiple of the first N - 129 bits of the binary expansion 383 * of pi (for RFC 5236) or e (for RFC 7919) to this intermediate bit-string 384 * such that the resulting integer is a safe-prime. 385 * - The result is the respective RFC 3526 / 7919 prime, and the corresponding 386 * generator is always chosen to be 2 (which is a square for these prime, 387 * hence the corresponding subgroup has order (p-1)/2 and avoids leaking a 388 * bit in the private exponent). 389 * 390 */ 391 392 #if !defined(MBEDTLS_DEPRECATED_REMOVED) 393 394 /** 395 * \warning The origin of the primes in RFC 5114 is not documented and 396 * their use therefore constitutes a security risk! 397 * 398 * \deprecated The hex-encoded primes from RFC 5114 are deprecated and are 399 * likely to be removed in a future version of the library without 400 * replacement. 401 */ 402 403 /** 404 * The hexadecimal presentation of the prime underlying the 405 * 2048-bit MODP Group with 224-bit Prime Order Subgroup, as defined 406 * in <em>RFC-5114: Additional Diffie-Hellman Groups for Use with 407 * IETF Standards</em>. 408 */ 409 #define MBEDTLS_DHM_RFC5114_MODP_2048_P \ 410 MBEDTLS_DEPRECATED_STRING_CONSTANT( \ 411 "AD107E1E9123A9D0D660FAA79559C51FA20D64E5683B9FD1" \ 412 "B54B1597B61D0A75E6FA141DF95A56DBAF9A3C407BA1DF15" \ 413 "EB3D688A309C180E1DE6B85A1274A0A66D3F8152AD6AC212" \ 414 "9037C9EDEFDA4DF8D91E8FEF55B7394B7AD5B7D0B6C12207" \ 415 "C9F98D11ED34DBF6C6BA0B2C8BBC27BE6A00E0A0B9C49708" \ 416 "B3BF8A317091883681286130BC8985DB1602E714415D9330" \ 417 "278273C7DE31EFDC7310F7121FD5A07415987D9ADC0A486D" \ 418 "CDF93ACC44328387315D75E198C641A480CD86A1B9E587E8" \ 419 "BE60E69CC928B2B9C52172E413042E9B23F10B0E16E79763" \ 420 "C9B53DCF4BA80A29E3FB73C16B8E75B97EF363E2FFA31F71" \ 421 "CF9DE5384E71B81C0AC4DFFE0C10E64F" ) 422 423 /** 424 * The hexadecimal presentation of the chosen generator of the 2048-bit MODP 425 * Group with 224-bit Prime Order Subgroup, as defined in <em>RFC-5114: 426 * Additional Diffie-Hellman Groups for Use with IETF Standards</em>. 427 */ 428 #define MBEDTLS_DHM_RFC5114_MODP_2048_G \ 429 MBEDTLS_DEPRECATED_STRING_CONSTANT( \ 430 "AC4032EF4F2D9AE39DF30B5C8FFDAC506CDEBE7B89998CAF" \ 431 "74866A08CFE4FFE3A6824A4E10B9A6F0DD921F01A70C4AFA" \ 432 "AB739D7700C29F52C57DB17C620A8652BE5E9001A8D66AD7" \ 433 "C17669101999024AF4D027275AC1348BB8A762D0521BC98A" \ 434 "E247150422EA1ED409939D54DA7460CDB5F6C6B250717CBE" \ 435 "F180EB34118E98D119529A45D6F834566E3025E316A330EF" \ 436 "BB77A86F0C1AB15B051AE3D428C8F8ACB70A8137150B8EEB" \ 437 "10E183EDD19963DDD9E263E4770589EF6AA21E7F5F2FF381" \ 438 "B539CCE3409D13CD566AFBB48D6C019181E1BCFE94B30269" \ 439 "EDFE72FE9B6AA4BD7B5A0F1C71CFFF4C19C418E1F6EC0179" \ 440 "81BC087F2A7065B384B890D3191F2BFA" ) 441 442 /** 443 * The hexadecimal presentation of the prime underlying the 2048-bit MODP 444 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP) 445 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>. 446 * 447 * \deprecated The hex-encoded primes from RFC 3625 are deprecated and 448 * superseded by the corresponding macros providing them as 449 * binary constants. Their hex-encoded constants are likely 450 * to be removed in a future version of the library. 451 * 452 */ 453 #define MBEDTLS_DHM_RFC3526_MODP_2048_P \ 454 MBEDTLS_DEPRECATED_STRING_CONSTANT( \ 455 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \ 456 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \ 457 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \ 458 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \ 459 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \ 460 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \ 461 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \ 462 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \ 463 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \ 464 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \ 465 "15728E5A8AACAA68FFFFFFFFFFFFFFFF" ) 466 467 /** 468 * The hexadecimal presentation of the chosen generator of the 2048-bit MODP 469 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP) 470 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>. 471 */ 472 #define MBEDTLS_DHM_RFC3526_MODP_2048_G \ 473 MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" ) 474 475 /** 476 * The hexadecimal presentation of the prime underlying the 3072-bit MODP 477 * Group, as defined in <em>RFC-3072: More Modular Exponential (MODP) 478 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>. 479 */ 480 #define MBEDTLS_DHM_RFC3526_MODP_3072_P \ 481 MBEDTLS_DEPRECATED_STRING_CONSTANT( \ 482 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \ 483 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \ 484 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \ 485 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \ 486 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \ 487 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \ 488 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \ 489 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \ 490 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \ 491 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \ 492 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \ 493 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \ 494 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \ 495 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \ 496 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \ 497 "43DB5BFCE0FD108E4B82D120A93AD2CAFFFFFFFFFFFFFFFF" ) 498 499 /** 500 * The hexadecimal presentation of the chosen generator of the 3072-bit MODP 501 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP) 502 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>. 503 */ 504 #define MBEDTLS_DHM_RFC3526_MODP_3072_G \ 505 MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" ) 506 507 /** 508 * The hexadecimal presentation of the prime underlying the 4096-bit MODP 509 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP) 510 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>. 511 */ 512 #define MBEDTLS_DHM_RFC3526_MODP_4096_P \ 513 MBEDTLS_DEPRECATED_STRING_CONSTANT( \ 514 "FFFFFFFFFFFFFFFFC90FDAA22168C234C4C6628B80DC1CD1" \ 515 "29024E088A67CC74020BBEA63B139B22514A08798E3404DD" \ 516 "EF9519B3CD3A431B302B0A6DF25F14374FE1356D6D51C245" \ 517 "E485B576625E7EC6F44C42E9A637ED6B0BFF5CB6F406B7ED" \ 518 "EE386BFB5A899FA5AE9F24117C4B1FE649286651ECE45B3D" \ 519 "C2007CB8A163BF0598DA48361C55D39A69163FA8FD24CF5F" \ 520 "83655D23DCA3AD961C62F356208552BB9ED529077096966D" \ 521 "670C354E4ABC9804F1746C08CA18217C32905E462E36CE3B" \ 522 "E39E772C180E86039B2783A2EC07A28FB5C55DF06F4C52C9" \ 523 "DE2BCBF6955817183995497CEA956AE515D2261898FA0510" \ 524 "15728E5A8AAAC42DAD33170D04507A33A85521ABDF1CBA64" \ 525 "ECFB850458DBEF0A8AEA71575D060C7DB3970F85A6E1E4C7" \ 526 "ABF5AE8CDB0933D71E8C94E04A25619DCEE3D2261AD2EE6B" \ 527 "F12FFA06D98A0864D87602733EC86A64521F2B18177B200C" \ 528 "BBE117577A615D6C770988C0BAD946E208E24FA074E5AB31" \ 529 "43DB5BFCE0FD108E4B82D120A92108011A723C12A787E6D7" \ 530 "88719A10BDBA5B2699C327186AF4E23C1A946834B6150BDA" \ 531 "2583E9CA2AD44CE8DBBBC2DB04DE8EF92E8EFC141FBECAA6" \ 532 "287C59474E6BC05D99B2964FA090C3A2233BA186515BE7ED" \ 533 "1F612970CEE2D7AFB81BDD762170481CD0069127D5B05AA9" \ 534 "93B4EA988D8FDDC186FFB7DC90A6C08F4DF435C934063199" \ 535 "FFFFFFFFFFFFFFFF" ) 536 537 /** 538 * The hexadecimal presentation of the chosen generator of the 4096-bit MODP 539 * Group, as defined in <em>RFC-3526: More Modular Exponential (MODP) 540 * Diffie-Hellman groups for Internet Key Exchange (IKE)</em>. 541 */ 542 #define MBEDTLS_DHM_RFC3526_MODP_4096_G \ 543 MBEDTLS_DEPRECATED_STRING_CONSTANT( "02" ) 544 545 #endif /* MBEDTLS_DEPRECATED_REMOVED */ 546 547 /* 548 * Trustworthy DHM parameters in binary form 549 */ 550 551 #define MBEDTLS_DHM_RFC3526_MODP_2048_P_BIN { \ 552 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \ 553 0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \ 554 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \ 555 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \ 556 0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \ 557 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \ 558 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \ 559 0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \ 560 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \ 561 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \ 562 0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \ 563 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \ 564 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \ 565 0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \ 566 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \ 567 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \ 568 0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \ 569 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \ 570 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \ 571 0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \ 572 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \ 573 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \ 574 0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \ 575 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \ 576 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \ 577 0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \ 578 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \ 579 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \ 580 0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \ 581 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \ 582 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAC, 0xAA, 0x68, \ 583 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 584 585 #define MBEDTLS_DHM_RFC3526_MODP_2048_G_BIN { 0x02 } 586 587 #define MBEDTLS_DHM_RFC3526_MODP_3072_P_BIN { \ 588 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \ 589 0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \ 590 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \ 591 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \ 592 0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \ 593 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \ 594 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \ 595 0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \ 596 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \ 597 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \ 598 0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \ 599 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \ 600 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \ 601 0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \ 602 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \ 603 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \ 604 0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \ 605 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \ 606 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \ 607 0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \ 608 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \ 609 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \ 610 0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \ 611 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \ 612 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \ 613 0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \ 614 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \ 615 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \ 616 0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \ 617 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \ 618 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, \ 619 0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33, \ 620 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, \ 621 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, \ 622 0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D, \ 623 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, \ 624 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, \ 625 0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D, \ 626 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, \ 627 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, \ 628 0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64, \ 629 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, \ 630 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, \ 631 0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2, \ 632 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, \ 633 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, \ 634 0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x3A, 0xD2, 0xCA, \ 635 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 636 637 #define MBEDTLS_DHM_RFC3526_MODP_3072_G_BIN { 0x02 } 638 639 #define MBEDTLS_DHM_RFC3526_MODP_4096_P_BIN { \ 640 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \ 641 0xC9, 0x0F, 0xDA, 0xA2, 0x21, 0x68, 0xC2, 0x34, \ 642 0xC4, 0xC6, 0x62, 0x8B, 0x80, 0xDC, 0x1C, 0xD1, \ 643 0x29, 0x02, 0x4E, 0x08, 0x8A, 0x67, 0xCC, 0x74, \ 644 0x02, 0x0B, 0xBE, 0xA6, 0x3B, 0x13, 0x9B, 0x22, \ 645 0x51, 0x4A, 0x08, 0x79, 0x8E, 0x34, 0x04, 0xDD, \ 646 0xEF, 0x95, 0x19, 0xB3, 0xCD, 0x3A, 0x43, 0x1B, \ 647 0x30, 0x2B, 0x0A, 0x6D, 0xF2, 0x5F, 0x14, 0x37, \ 648 0x4F, 0xE1, 0x35, 0x6D, 0x6D, 0x51, 0xC2, 0x45, \ 649 0xE4, 0x85, 0xB5, 0x76, 0x62, 0x5E, 0x7E, 0xC6, \ 650 0xF4, 0x4C, 0x42, 0xE9, 0xA6, 0x37, 0xED, 0x6B, \ 651 0x0B, 0xFF, 0x5C, 0xB6, 0xF4, 0x06, 0xB7, 0xED, \ 652 0xEE, 0x38, 0x6B, 0xFB, 0x5A, 0x89, 0x9F, 0xA5, \ 653 0xAE, 0x9F, 0x24, 0x11, 0x7C, 0x4B, 0x1F, 0xE6, \ 654 0x49, 0x28, 0x66, 0x51, 0xEC, 0xE4, 0x5B, 0x3D, \ 655 0xC2, 0x00, 0x7C, 0xB8, 0xA1, 0x63, 0xBF, 0x05, \ 656 0x98, 0xDA, 0x48, 0x36, 0x1C, 0x55, 0xD3, 0x9A, \ 657 0x69, 0x16, 0x3F, 0xA8, 0xFD, 0x24, 0xCF, 0x5F, \ 658 0x83, 0x65, 0x5D, 0x23, 0xDC, 0xA3, 0xAD, 0x96, \ 659 0x1C, 0x62, 0xF3, 0x56, 0x20, 0x85, 0x52, 0xBB, \ 660 0x9E, 0xD5, 0x29, 0x07, 0x70, 0x96, 0x96, 0x6D, \ 661 0x67, 0x0C, 0x35, 0x4E, 0x4A, 0xBC, 0x98, 0x04, \ 662 0xF1, 0x74, 0x6C, 0x08, 0xCA, 0x18, 0x21, 0x7C, \ 663 0x32, 0x90, 0x5E, 0x46, 0x2E, 0x36, 0xCE, 0x3B, \ 664 0xE3, 0x9E, 0x77, 0x2C, 0x18, 0x0E, 0x86, 0x03, \ 665 0x9B, 0x27, 0x83, 0xA2, 0xEC, 0x07, 0xA2, 0x8F, \ 666 0xB5, 0xC5, 0x5D, 0xF0, 0x6F, 0x4C, 0x52, 0xC9, \ 667 0xDE, 0x2B, 0xCB, 0xF6, 0x95, 0x58, 0x17, 0x18, \ 668 0x39, 0x95, 0x49, 0x7C, 0xEA, 0x95, 0x6A, 0xE5, \ 669 0x15, 0xD2, 0x26, 0x18, 0x98, 0xFA, 0x05, 0x10, \ 670 0x15, 0x72, 0x8E, 0x5A, 0x8A, 0xAA, 0xC4, 0x2D, \ 671 0xAD, 0x33, 0x17, 0x0D, 0x04, 0x50, 0x7A, 0x33, \ 672 0xA8, 0x55, 0x21, 0xAB, 0xDF, 0x1C, 0xBA, 0x64, \ 673 0xEC, 0xFB, 0x85, 0x04, 0x58, 0xDB, 0xEF, 0x0A, \ 674 0x8A, 0xEA, 0x71, 0x57, 0x5D, 0x06, 0x0C, 0x7D, \ 675 0xB3, 0x97, 0x0F, 0x85, 0xA6, 0xE1, 0xE4, 0xC7, \ 676 0xAB, 0xF5, 0xAE, 0x8C, 0xDB, 0x09, 0x33, 0xD7, \ 677 0x1E, 0x8C, 0x94, 0xE0, 0x4A, 0x25, 0x61, 0x9D, \ 678 0xCE, 0xE3, 0xD2, 0x26, 0x1A, 0xD2, 0xEE, 0x6B, \ 679 0xF1, 0x2F, 0xFA, 0x06, 0xD9, 0x8A, 0x08, 0x64, \ 680 0xD8, 0x76, 0x02, 0x73, 0x3E, 0xC8, 0x6A, 0x64, \ 681 0x52, 0x1F, 0x2B, 0x18, 0x17, 0x7B, 0x20, 0x0C, \ 682 0xBB, 0xE1, 0x17, 0x57, 0x7A, 0x61, 0x5D, 0x6C, \ 683 0x77, 0x09, 0x88, 0xC0, 0xBA, 0xD9, 0x46, 0xE2, \ 684 0x08, 0xE2, 0x4F, 0xA0, 0x74, 0xE5, 0xAB, 0x31, \ 685 0x43, 0xDB, 0x5B, 0xFC, 0xE0, 0xFD, 0x10, 0x8E, \ 686 0x4B, 0x82, 0xD1, 0x20, 0xA9, 0x21, 0x08, 0x01, \ 687 0x1A, 0x72, 0x3C, 0x12, 0xA7, 0x87, 0xE6, 0xD7, \ 688 0x88, 0x71, 0x9A, 0x10, 0xBD, 0xBA, 0x5B, 0x26, \ 689 0x99, 0xC3, 0x27, 0x18, 0x6A, 0xF4, 0xE2, 0x3C, \ 690 0x1A, 0x94, 0x68, 0x34, 0xB6, 0x15, 0x0B, 0xDA, \ 691 0x25, 0x83, 0xE9, 0xCA, 0x2A, 0xD4, 0x4C, 0xE8, \ 692 0xDB, 0xBB, 0xC2, 0xDB, 0x04, 0xDE, 0x8E, 0xF9, \ 693 0x2E, 0x8E, 0xFC, 0x14, 0x1F, 0xBE, 0xCA, 0xA6, \ 694 0x28, 0x7C, 0x59, 0x47, 0x4E, 0x6B, 0xC0, 0x5D, \ 695 0x99, 0xB2, 0x96, 0x4F, 0xA0, 0x90, 0xC3, 0xA2, \ 696 0x23, 0x3B, 0xA1, 0x86, 0x51, 0x5B, 0xE7, 0xED, \ 697 0x1F, 0x61, 0x29, 0x70, 0xCE, 0xE2, 0xD7, 0xAF, \ 698 0xB8, 0x1B, 0xDD, 0x76, 0x21, 0x70, 0x48, 0x1C, \ 699 0xD0, 0x06, 0x91, 0x27, 0xD5, 0xB0, 0x5A, 0xA9, \ 700 0x93, 0xB4, 0xEA, 0x98, 0x8D, 0x8F, 0xDD, 0xC1, \ 701 0x86, 0xFF, 0xB7, 0xDC, 0x90, 0xA6, 0xC0, 0x8F, \ 702 0x4D, 0xF4, 0x35, 0xC9, 0x34, 0x06, 0x31, 0x99, \ 703 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 704 705 #define MBEDTLS_DHM_RFC3526_MODP_4096_G_BIN { 0x02 } 706 707 #define MBEDTLS_DHM_RFC7919_FFDHE2048_P_BIN { \ 708 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \ 709 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \ 710 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \ 711 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \ 712 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \ 713 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \ 714 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \ 715 0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \ 716 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \ 717 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \ 718 0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \ 719 0xB5, 0x57, 0x13, 0x5E, 0x7F, 0x57, 0xC9, 0x35, \ 720 0x98, 0x4F, 0x0C, 0x70, 0xE0, 0xE6, 0x8B, 0x77, \ 721 0xE2, 0xA6, 0x89, 0xDA, 0xF3, 0xEF, 0xE8, 0x72, \ 722 0x1D, 0xF1, 0x58, 0xA1, 0x36, 0xAD, 0xE7, 0x35, \ 723 0x30, 0xAC, 0xCA, 0x4F, 0x48, 0x3A, 0x79, 0x7A, \ 724 0xBC, 0x0A, 0xB1, 0x82, 0xB3, 0x24, 0xFB, 0x61, \ 725 0xD1, 0x08, 0xA9, 0x4B, 0xB2, 0xC8, 0xE3, 0xFB, \ 726 0xB9, 0x6A, 0xDA, 0xB7, 0x60, 0xD7, 0xF4, 0x68, \ 727 0x1D, 0x4F, 0x42, 0xA3, 0xDE, 0x39, 0x4D, 0xF4, \ 728 0xAE, 0x56, 0xED, 0xE7, 0x63, 0x72, 0xBB, 0x19, \ 729 0x0B, 0x07, 0xA7, 0xC8, 0xEE, 0x0A, 0x6D, 0x70, \ 730 0x9E, 0x02, 0xFC, 0xE1, 0xCD, 0xF7, 0xE2, 0xEC, \ 731 0xC0, 0x34, 0x04, 0xCD, 0x28, 0x34, 0x2F, 0x61, \ 732 0x91, 0x72, 0xFE, 0x9C, 0xE9, 0x85, 0x83, 0xFF, \ 733 0x8E, 0x4F, 0x12, 0x32, 0xEE, 0xF2, 0x81, 0x83, \ 734 0xC3, 0xFE, 0x3B, 0x1B, 0x4C, 0x6F, 0xAD, 0x73, \ 735 0x3B, 0xB5, 0xFC, 0xBC, 0x2E, 0xC2, 0x20, 0x05, \ 736 0xC5, 0x8E, 0xF1, 0x83, 0x7D, 0x16, 0x83, 0xB2, \ 737 0xC6, 0xF3, 0x4A, 0x26, 0xC1, 0xB2, 0xEF, 0xFA, \ 738 0x88, 0x6B, 0x42, 0x38, 0x61, 0x28, 0x5C, 0x97, \ 739 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, } 740 741 #define MBEDTLS_DHM_RFC7919_FFDHE2048_G_BIN { 0x02 } 742 743 #define MBEDTLS_DHM_RFC7919_FFDHE3072_P_BIN { \ 744 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \ 745 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \ 746 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \ 747 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \ 748 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \ 749 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \ 750 0x7D, 0x2F, 0xE3, 0x63, 0x63, 0x0C, 0x75, 0xD8, \ 751 0xF6, 0x81, 0xB2, 0x02, 0xAE, 0xC4, 0x61, 0x7A, \ 752 0xD3, 0xDF, 0x1E, 0xD5, 0xD5, 0xFD, 0x65, 0x61, \ 753 0x24, 0x33, 0xF5, 0x1F, 0x5F, 0x06, 0x6E, 0xD0, \ 754 0x85, 0x63, 0x65, 0x55, 0x3D, 0xED, 0x1A, 0xF3, \ 755 0xB5, 0x57, 0x13, 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x34, 0xF4, 0xDE, 0xF9, 0x9C, 0x02, 0x38, \ 777 0x61, 0xB4, 0x6F, 0xC9, 0xD6, 0xE6, 0xC9, 0x07, \ 778 0x7A, 0xD9, 0x1D, 0x26, 0x91, 0xF7, 0xF7, 0xEE, \ 779 0x59, 0x8C, 0xB0, 0xFA, 0xC1, 0x86, 0xD9, 0x1C, \ 780 0xAE, 0xFE, 0x13, 0x09, 0x85, 0x13, 0x92, 0x70, \ 781 0xB4, 0x13, 0x0C, 0x93, 0xBC, 0x43, 0x79, 0x44, \ 782 0xF4, 0xFD, 0x44, 0x52, 0xE2, 0xD7, 0x4D, 0xD3, \ 783 0x64, 0xF2, 0xE2, 0x1E, 0x71, 0xF5, 0x4B, 0xFF, \ 784 0x5C, 0xAE, 0x82, 0xAB, 0x9C, 0x9D, 0xF6, 0x9E, \ 785 0xE8, 0x6D, 0x2B, 0xC5, 0x22, 0x36, 0x3A, 0x0D, \ 786 0xAB, 0xC5, 0x21, 0x97, 0x9B, 0x0D, 0xEA, 0xDA, \ 787 0x1D, 0xBF, 0x9A, 0x42, 0xD5, 0xC4, 0x48, 0x4E, \ 788 0x0A, 0xBC, 0xD0, 0x6B, 0xFA, 0x53, 0xDD, 0xEF, \ 789 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \ 790 0x25, 0xE4, 0x1D, 0x2B, 0x66, 0xC6, 0x2E, 0x37, \ 791 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 792 793 #define MBEDTLS_DHM_RFC7919_FFDHE3072_G_BIN { 0x02 } 794 795 #define MBEDTLS_DHM_RFC7919_FFDHE4096_P_BIN { \ 796 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \ 797 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \ 798 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \ 799 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53, 0xDD, 0xEF, \ 841 0x3C, 0x1B, 0x20, 0xEE, 0x3F, 0xD5, 0x9D, 0x7C, \ 842 0x25, 0xE4, 0x1D, 0x2B, 0x66, 0x9E, 0x1E, 0xF1, \ 843 0x6E, 0x6F, 0x52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \ 844 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \ 845 0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \ 846 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \ 847 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \ 848 0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \ 849 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \ 850 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \ 851 0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \ 852 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \ 853 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \ 854 0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \ 855 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \ 856 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \ 857 0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \ 858 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x65, 0x5F, 0x6A, \ 859 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 860 861 #define MBEDTLS_DHM_RFC7919_FFDHE4096_G_BIN { 0x02 } 862 863 #define MBEDTLS_DHM_RFC7919_FFD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 947 0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \ 948 0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \ 949 0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \ 950 0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \ 951 0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \ 952 0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \ 953 0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \ 954 0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \ 955 0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \ 956 0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \ 957 0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \ 958 0xA4, 0x0E, 0x32, 0x9C, 0xD0, 0xE4, 0x0E, 0x65, \ 959 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 960 961 #define MBEDTLS_DHM_RFC7919_FFDHE6144_G_BIN { 0x02 } 962 963 #define MBEDTLS_DHM_RFC7919_FFDHE8192_P_BIN { \ 964 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, \ 965 0xAD, 0xF8, 0x54, 0x58, 0xA2, 0xBB, 0x4A, 0x9A, \ 966 0xAF, 0xDC, 0x56, 0x20, 0x27, 0x3D, 0x3C, 0xF1, \ 967 0xD8, 0xB9, 0xC5, 0x83, 0xCE, 0x2D, 0x36, 0x95, \ 968 0xA9, 0xE1, 0x36, 0x41, 0x14, 0x64, 0x33, 0xFB, \ 969 0xCC, 0x93, 0x9D, 0xCE, 0x24, 0x9B, 0x3E, 0xF9, \ 970 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52, 0xC3, 0x16, 0x4D, 0xF4, 0xFB, \ 1012 0x79, 0x30, 0xE9, 0xE4, 0xE5, 0x88, 0x57, 0xB6, \ 1013 0xAC, 0x7D, 0x5F, 0x42, 0xD6, 0x9F, 0x6D, 0x18, \ 1014 0x77, 0x63, 0xCF, 0x1D, 0x55, 0x03, 0x40, 0x04, \ 1015 0x87, 0xF5, 0x5B, 0xA5, 0x7E, 0x31, 0xCC, 0x7A, \ 1016 0x71, 0x35, 0xC8, 0x86, 0xEF, 0xB4, 0x31, 0x8A, \ 1017 0xED, 0x6A, 0x1E, 0x01, 0x2D, 0x9E, 0x68, 0x32, \ 1018 0xA9, 0x07, 0x60, 0x0A, 0x91, 0x81, 0x30, 0xC4, \ 1019 0x6D, 0xC7, 0x78, 0xF9, 0x71, 0xAD, 0x00, 0x38, \ 1020 0x09, 0x29, 0x99, 0xA3, 0x33, 0xCB, 0x8B, 0x7A, \ 1021 0x1A, 0x1D, 0xB9, 0x3D, 0x71, 0x40, 0x00, 0x3C, \ 1022 0x2A, 0x4E, 0xCE, 0xA9, 0xF9, 0x8D, 0x0A, 0xCC, \ 1023 0x0A, 0x82, 0x91, 0xCD, 0xCE, 0xC9, 0x7D, 0xCF, \ 1024 0x8E, 0xC9, 0xB5, 0x5A, 0x7F, 0x88, 0xA4, 0x6B, \ 1025 0x4D, 0xB5, 0xA8, 0x51, 0xF4, 0x41, 0x82, 0xE1, \ 1026 0xC6, 0x8A, 0x00, 0x7E, 0x5E, 0x0D, 0xD9, 0x02, \ 1027 0x0B, 0xFD, 0x64, 0xB6, 0x45, 0x03, 0x6C, 0x7A, \ 1028 0x4E, 0x67, 0x7D, 0x2C, 0x38, 0x53, 0x2A, 0x3A, \ 1029 0x23, 0xBA, 0x44, 0x42, 0xCA, 0xF5, 0x3E, 0xA6, \ 1030 0x3B, 0xB4, 0x54, 0x32, 0x9B, 0x76, 0x24, 0xC8, \ 1031 0x91, 0x7B, 0xDD, 0x64, 0xB1, 0xC0, 0xFD, 0x4C, \ 1032 0xB3, 0x8E, 0x8C, 0x33, 0x4C, 0x70, 0x1C, 0x3A, \ 1033 0xCD, 0xAD, 0x06, 0x57, 0xFC, 0xCF, 0xEC, 0x71, \ 1034 0x9B, 0x1F, 0x5C, 0x3E, 0x4E, 0x46, 0x04, 0x1F, \ 1035 0x38, 0x81, 0x47, 0xFB, 0x4C, 0xFD, 0xB4, 0x77, \ 1036 0xA5, 0x24, 0x71, 0xF7, 0xA9, 0xA9, 0x69, 0x10, \ 1037 0xB8, 0x55, 0x32, 0x2E, 0xDB, 0x63, 0x40, 0xD8, \ 1038 0xA0, 0x0E, 0xF0, 0x92, 0x35, 0x05, 0x11, 0xE3, \ 1039 0x0A, 0xBE, 0xC1, 0xFF, 0xF9, 0xE3, 0xA2, 0x6E, \ 1040 0x7F, 0xB2, 0x9F, 0x8C, 0x18, 0x30, 0x23, 0xC3, \ 1041 0x58, 0x7E, 0x38, 0xDA, 0x00, 0x77, 0xD9, 0xB4, \ 1042 0x76, 0x3E, 0x4E, 0x4B, 0x94, 0xB2, 0xBB, 0xC1, \ 1043 0x94, 0xC6, 0x65, 0x1E, 0x77, 0xCA, 0xF9, 0x92, \ 1044 0xEE, 0xAA, 0xC0, 0x23, 0x2A, 0x28, 0x1B, 0xF6, \ 1045 0xB3, 0xA7, 0x39, 0xC1, 0x22, 0x61, 0x16, 0x82, \ 1046 0x0A, 0xE8, 0xDB, 0x58, 0x47, 0xA6, 0x7C, 0xBE, \ 1047 0xF9, 0xC9, 0x09, 0x1B, 0x46, 0x2D, 0x53, 0x8C, \ 1048 0xD7, 0x2B, 0x03, 0x74, 0x6A, 0xE7, 0x7F, 0x5E, \ 1049 0x62, 0x29, 0x2C, 0x31, 0x15, 0x62, 0xA8, 0x46, \ 1050 0x50, 0x5D, 0xC8, 0x2D, 0xB8, 0x54, 0x33, 0x8A, \ 1051 0xE4, 0x9F, 0x52, 0x35, 0xC9, 0x5B, 0x91, 0x17, \ 1052 0x8C, 0xCF, 0x2D, 0xD5, 0xCA, 0xCE, 0xF4, 0x03, \ 1053 0xEC, 0x9D, 0x18, 0x10, 0xC6, 0x27, 0x2B, 0x04, \ 1054 0x5B, 0x3B, 0x71, 0xF9, 0xDC, 0x6B, 0x80, 0xD6, \ 1055 0x3F, 0xDD, 0x4A, 0x8E, 0x9A, 0xDB, 0x1E, 0x69, \ 1056 0x62, 0xA6, 0x95, 0x26, 0xD4, 0x31, 0x61, 0xC1, \ 1057 0xA4, 0x1D, 0x57, 0x0D, 0x79, 0x38, 0xDA, 0xD4, \ 1058 0xA4, 0x0E, 0x32, 0x9C, 0xCF, 0xF4, 0x6A, 0xAA, \ 1059 0x36, 0xAD, 0x00, 0x4C, 0xF6, 0x00, 0xC8, 0x38, \ 1060 0x1E, 0x42, 0x5A, 0x31, 0xD9, 0x51, 0xAE, 0x64, \ 1061 0xFD, 0xB2, 0x3F, 0xCE, 0xC9, 0x50, 0x9D, 0x43, \ 1062 0x68, 0x7F, 0xEB, 0x69, 0xED, 0xD1, 0xCC, 0x5E, \ 1063 0x0B, 0x8C, 0xC3, 0xBD, 0xF6, 0x4B, 0x10, 0xEF, \ 1064 0x86, 0xB6, 0x31, 0x42, 0xA3, 0xAB, 0x88, 0x29, \ 1065 0x55, 0x5B, 0x2F, 0x74, 0x7C, 0x93, 0x26, 0x65, \ 1066 0xCB, 0x2C, 0x0F, 0x1C, 0xC0, 0x1B, 0xD7, 0x02, \ 1067 0x29, 0x38, 0x88, 0x39, 0xD2, 0xAF, 0x05, 0xE4, \ 1068 0x54, 0x50, 0x4A, 0xC7, 0x8B, 0x75, 0x82, 0x82, \ 1069 0x28, 0x46, 0xC0, 0xBA, 0x35, 0xC3, 0x5F, 0x5C, \ 1070 0x59, 0x16, 0x0C, 0xC0, 0x46, 0xFD, 0x82, 0x51, \ 1071 0x54, 0x1F, 0xC6, 0x8C, 0x9C, 0x86, 0xB0, 0x22, \ 1072 0xBB, 0x70, 0x99, 0x87, 0x6A, 0x46, 0x0E, 0x74, \ 1073 0x51, 0xA8, 0xA9, 0x31, 0x09, 0x70, 0x3F, 0xEE, \ 1074 0x1C, 0x21, 0x7E, 0x6C, 0x38, 0x26, 0xE5, 0x2C, \ 1075 0x51, 0xAA, 0x69, 0x1E, 0x0E, 0x42, 0x3C, 0xFC, \ 1076 0x99, 0xE9, 0xE3, 0x16, 0x50, 0xC1, 0x21, 0x7B, \ 1077 0x62, 0x48, 0x16, 0xCD, 0xAD, 0x9A, 0x95, 0xF9, \ 1078 0xD5, 0xB8, 0x01, 0x94, 0x88, 0xD9, 0xC0, 0xA0, \ 1079 0xA1, 0xFE, 0x30, 0x75, 0xA5, 0x77, 0xE2, 0x31, \ 1080 0x83, 0xF8, 0x1D, 0x4A, 0x3F, 0x2F, 0xA4, 0x57, \ 1081 0x1E, 0xFC, 0x8C, 0xE0, 0xBA, 0x8A, 0x4F, 0xE8, \ 1082 0xB6, 0x85, 0x5D, 0xFE, 0x72, 0xB0, 0xA6, 0x6E, \ 1083 0xDE, 0xD2, 0xFB, 0xAB, 0xFB, 0xE5, 0x8A, 0x30, \ 1084 0xFA, 0xFA, 0xBE, 0x1C, 0x5D, 0x71, 0xA8, 0x7E, \ 1085 0x2F, 0x74, 0x1E, 0xF8, 0xC1, 0xFE, 0x86, 0xFE, \ 1086 0xA6, 0xBB, 0xFD, 0xE5, 0x30, 0x67, 0x7F, 0x0D, \ 1087 0x97, 0xD1, 0x1D, 0x49, 0xF7, 0xA8, 0x44, 0x3D, \ 1088 0x08, 0x22, 0xE5, 0x06, 0xA9, 0xF4, 0x61, 0x4E, \ 1089 0x01, 0x1E, 0x2A, 0x94, 0x83, 0x8F, 0xF8, 0x8C, \ 1090 0xD6, 0x8C, 0x8B, 0xB7, 0xC5, 0xC6, 0x42, 0x4C, \ 1091 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF } 1092 1093 #define MBEDTLS_DHM_RFC7919_FFDHE8192_G_BIN { 0x02 } 1094 1095 #endif /* dhm.h */ 1096