|
125 |
#ifndef HEADER_BN_H |
125 |
#ifndef HEADER_BN_H |
126 |
# define HEADER_BN_H |
126 |
# define HEADER_BN_H |
127 |
|
127 |
|
|
|
128 |
# include <limits.h> |
128 |
# include <openssl/e_os2.h> |
129 |
# include <openssl/e_os2.h> |
129 |
# ifndef OPENSSL_NO_FP_API |
130 |
# ifndef OPENSSL_NO_FP_API |
130 |
# include <stdio.h> /* FILE */ |
131 |
# include <stdio.h> /* FILE */ |
Lines 739-746
const BIGNUM *BN_get0_nist_prime_521(void);
|
Link Here
|
---|
|
739 |
|
740 |
|
740 |
/* library internal functions */ |
741 |
/* library internal functions */ |
741 |
|
742 |
|
742 |
# define bn_expand(a,bits) ((((((bits+BN_BITS2-1))/BN_BITS2)) <= (a)->dmax)?\ |
743 |
# define bn_expand(a,bits) \ |
743 |
(a):bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2)) |
744 |
( \ |
|
|
745 |
bits > (INT_MAX - BN_BITS2 + 1) ? \ |
746 |
NULL \ |
747 |
: \ |
748 |
(((bits+BN_BITS2-1)/BN_BITS2) <= (a)->dmax) ? \ |
749 |
(a) \ |
750 |
: \ |
751 |
bn_expand2((a),(bits+BN_BITS2-1)/BN_BITS2) \ |
752 |
) |
753 |
|
744 |
# define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words))) |
754 |
# define bn_wexpand(a,words) (((words) <= (a)->dmax)?(a):bn_expand2((a),(words))) |
745 |
BIGNUM *bn_expand2(BIGNUM *a, int words); |
755 |
BIGNUM *bn_expand2(BIGNUM *a, int words); |
746 |
# ifndef OPENSSL_NO_DEPRECATED |
756 |
# ifndef OPENSSL_NO_DEPRECATED |