Sortix main manual
This manual documents Sortix main. You can instead view this document in the latest official manual.
NAME
get_rfc2409_prime_768, get_rfc2409_prime_1024, get_rfc3526_prime_1536, get_rfc3526_prime_2048, get_rfc3526_prime_3072, get_rfc3526_prime_4096, get_rfc3526_prime_6144, get_rfc3526_prime_8192, 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>get_rfc2409_prime_768(BIGNUM *bn);
get_rfc2409_prime_1024(BIGNUM *bn);
get_rfc3526_prime_1536(BIGNUM *bn);
get_rfc3526_prime_2048(BIGNUM *bn);
get_rfc3526_prime_3072(BIGNUM *bn);
get_rfc3526_prime_4096(BIGNUM *bn);
get_rfc3526_prime_6144(BIGNUM *bn);
get_rfc3526_prime_8192(BIGNUM *bn);
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. The names with the prefix ‘BN_’ are aliases for the names without that prefix.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 |