2
0

DH_get_1024_160.pod 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. =pod
  2. =head1 NAME
  3. DH_get_1024_160,
  4. DH_get_2048_224,
  5. DH_get_2048_256,
  6. BN_get0_nist_prime_192,
  7. BN_get0_nist_prime_224,
  8. BN_get0_nist_prime_256,
  9. BN_get0_nist_prime_384,
  10. BN_get0_nist_prime_521,
  11. BN_get_rfc2409_prime_768,
  12. BN_get_rfc2409_prime_1024,
  13. BN_get_rfc3526_prime_1536,
  14. BN_get_rfc3526_prime_2048,
  15. BN_get_rfc3526_prime_3072,
  16. BN_get_rfc3526_prime_4096,
  17. BN_get_rfc3526_prime_6144,
  18. BN_get_rfc3526_prime_8192
  19. - Create standardized public primes or DH pairs
  20. =head1 SYNOPSIS
  21. #include <openssl/dh.h>
  22. const BIGNUM *BN_get0_nist_prime_192(void);
  23. const BIGNUM *BN_get0_nist_prime_224(void);
  24. const BIGNUM *BN_get0_nist_prime_256(void);
  25. const BIGNUM *BN_get0_nist_prime_384(void);
  26. const BIGNUM *BN_get0_nist_prime_521(void);
  27. BIGNUM *BN_get_rfc2409_prime_768(BIGNUM *bn);
  28. BIGNUM *BN_get_rfc2409_prime_1024(BIGNUM *bn);
  29. BIGNUM *BN_get_rfc3526_prime_1536(BIGNUM *bn);
  30. BIGNUM *BN_get_rfc3526_prime_2048(BIGNUM *bn);
  31. BIGNUM *BN_get_rfc3526_prime_3072(BIGNUM *bn);
  32. BIGNUM *BN_get_rfc3526_prime_4096(BIGNUM *bn);
  33. BIGNUM *BN_get_rfc3526_prime_6144(BIGNUM *bn);
  34. BIGNUM *BN_get_rfc3526_prime_8192(BIGNUM *bn);
  35. The following functions have been deprecated since OpenSSL 3.0, and can be
  36. hidden entirely by defining B<OPENSSL_API_COMPAT> with a suitable version value,
  37. see L<openssl_user_macros(7)>:
  38. #include <openssl/dh.h>
  39. DH *DH_get_1024_160(void);
  40. DH *DH_get_2048_224(void);
  41. DH *DH_get_2048_256(void);
  42. =head1 DESCRIPTION
  43. DH_get_1024_160(), DH_get_2048_224(), and DH_get_2048_256() each return
  44. a DH object for the IETF RFC 5114 value. These functions are deprecated.
  45. Applications should instead use EVP_PKEY_CTX_set_dh_rfc5114() and
  46. EVP_PKEY_CTX_set_dhx_rfc5114() as described in L<EVP_PKEY_CTX_ctrl(3)> or
  47. by setting the B<OSSL_PKEY_PARAM_GROUP_NAME> as specified in
  48. L<EVP_PKEY-DH(7)/DH parameters>) to one of "dh_1024_160", "dh_2048_224" or
  49. "dh_2048_256".
  50. BN_get0_nist_prime_192(), BN_get0_nist_prime_224(), BN_get0_nist_prime_256(),
  51. BN_get0_nist_prime_384(), and BN_get0_nist_prime_521() functions return
  52. a BIGNUM for the specific NIST prime curve (e.g., P-256).
  53. BN_get_rfc2409_prime_768(), BN_get_rfc2409_prime_1024(),
  54. BN_get_rfc3526_prime_1536(), BN_get_rfc3526_prime_2048(),
  55. BN_get_rfc3526_prime_3072(), BN_get_rfc3526_prime_4096(),
  56. BN_get_rfc3526_prime_6144(), and BN_get_rfc3526_prime_8192() functions
  57. return a BIGNUM for the specified size from IETF RFC 2409. If B<bn>
  58. is not NULL, the BIGNUM will be set into that location as well.
  59. =head1 RETURN VALUES
  60. Defined above.
  61. =head1 HISTORY
  62. The functions DH_get_1024_160(), DH_get_2048_224() and DH_get_2048_256() were
  63. deprecated in OpenSSL 3.0.
  64. =head1 COPYRIGHT
  65. Copyright 2016-2021 The OpenSSL Project Authors. All Rights Reserved.
  66. Licensed under the Apache License 2.0 (the "License"). You may not use
  67. this file except in compliance with the License. You can obtain a copy
  68. in the file LICENSE in the source distribution or at
  69. L<https://www.openssl.org/source/license.html>.
  70. =cut