Sortix cross-nightly manual
This manual documents Sortix cross-nightly. You can instead view this document in the latest official manual.
NAME
BN_get_rfc2409_prime_768, BN_get_rfc2409_prime_1024, BN_get_rfc3526_prime_1536, BN_get_rfc3526_prime_2048, BN_get_rfc3526_prime_3072, BN_get_rfc3526_prime_4096, BN_get_rfc3526_prime_6144, BN_get_rfc3526_prime_8192 — standard moduli for Diffie-Hellman key exchangeSYNOPSIS
#include <openssl/bn.h>BN_get_rfc2409_prime_768(BIGNUM *bn);
BN_get_rfc2409_prime_1024(BIGNUM *bn);
BN_get_rfc3526_prime_1536(BIGNUM *bn);
BN_get_rfc3526_prime_2048(BIGNUM *bn);
BN_get_rfc3526_prime_3072(BIGNUM *bn);
BN_get_rfc3526_prime_4096(BIGNUM *bn);
BN_get_rfc3526_prime_6144(BIGNUM *bn);
BN_get_rfc3526_prime_8192(BIGNUM *bn);
DESCRIPTION
Each of these functions returns one specific constant Sophie Germain prime number p.size s | offset |
768 = 3 * 2^8 | 149686 |
1024 = 2 * 2^9 | 129093 |
1536 = 3 * 2^9 | 741804 |
2048 = 2 * 2^10 | 124476 |
3072 = 3 * 2^10 | 1690314 |
4096 = 2 * 2^11 | 240904 |
6144 = 3 * 2^11 | 929484 |
8192 = 2 * 2^12 | 4743158 |