提交 40a3c123 编写于 作者: D Dr. Stephen Henson

Initialize bignum constants using BN_bin2bn() instead of BN_hex2bn(). This

saves a bit of space and avoids a compiler warning about string length.
上级 3001a770
......@@ -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);
......
此差异已折叠。
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册