diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-10-05 17:51:43 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-10-05 17:51:43 +0000 |
commit | 40a3c1230543c39d03a06e7b00e726313f9dd262 (patch) | |
tree | 6f795b7729a1e5572f60bb07d9ed5963c4971a13 /crypto/bn/bn.h | |
parent | 3001a770ed85bc32d60cefb4ba67f9bdcb51249f (diff) |
Initialize bignum constants using BN_bin2bn() instead of BN_hex2bn(). This
saves a bit of space and avoids a compiler warning about string length.
Diffstat (limited to 'crypto/bn/bn.h')
-rw-r--r-- | crypto/bn/bn.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/crypto/bn/bn.h b/crypto/bn/bn.h index f8652a46a0..61aecae6d5 100644 --- a/crypto/bn/bn.h +++ b/crypto/bn/bn.h @@ -739,16 +739,16 @@ BN_ULONG bn_add_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int n BN_ULONG bn_sub_words(BN_ULONG *rp, const BN_ULONG *ap, const BN_ULONG *bp,int num); /* Primes from RFC 2409 */ -int get_rfc2409_prime_768(BIGNUM **bn); -int get_rfc2409_prime_1024(BIGNUM **bn); +BIGNUM *get_rfc2409_prime_768(BIGNUM *bn); +BIGNUM *get_rfc2409_prime_1024(BIGNUM *bn); /* Primes from RFC 3526 */ -int get_rfc3526_prime_1536(BIGNUM **bn); -int get_rfc3526_prime_2048(BIGNUM **bn); -int get_rfc3526_prime_3072(BIGNUM **bn); -int get_rfc3526_prime_4096(BIGNUM **bn); -int get_rfc3526_prime_6144(BIGNUM **bn); -int get_rfc3526_prime_8192(BIGNUM **bn); +BIGNUM *get_rfc3526_prime_1536(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_2048(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_3072(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_4096(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_6144(BIGNUM *bn); +BIGNUM *get_rfc3526_prime_8192(BIGNUM *bn); int BN_bntest_rand(BIGNUM *rnd, int bits, int top,int bottom); |