Reviewed-by: Andy Polyakov <appro@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3740)
# ifdef BN_DEBUG_RAND
# define bn_pollute(a) \
do { \
# ifdef BN_DEBUG_RAND
# define bn_pollute(a) \
do { \
do { \
const BIGNUM *_bnum2 = (a); \
if (_bnum2 != NULL) { \
do { \
const BIGNUM *_bnum2 = (a); \
if (_bnum2 != NULL) { \
- OPENSSL_assert(((_bnum2->top == 0) && !_bnum2->neg) || \
- (_bnum2->top && (_bnum2->d[_bnum2->top - 1] != 0))); \
+ assert(((_bnum2->top == 0) && !_bnum2->neg) || \
+ (_bnum2->top && (_bnum2->d[_bnum2->top - 1] != 0))); \
bn_pollute(_bnum2); \
} \
} while(0)
bn_pollute(_bnum2); \
} \
} while(0)
# define bn_wcheck_size(bn, words) \
do { \
const BIGNUM *_bnum2 = (bn); \
# define bn_wcheck_size(bn, words) \
do { \
const BIGNUM *_bnum2 = (bn); \
- OPENSSL_assert((words) <= (_bnum2)->dmax && \
- (words) >= (_bnum2)->top); \
+ assert((words) <= (_bnum2)->dmax && \
+ (words) >= (_bnum2)->top); \
/* avoid unused variable warning with NDEBUG */ \
(void)(_bnum2); \
} while(0)
/* avoid unused variable warning with NDEBUG */ \
(void)(_bnum2); \
} while(0)
- OPENSSL_assert(top <= max);
#endif
for (i = 0; i < top; i++)
dst[i] = src[i];
#endif
for (i = 0; i < top; i++)
dst[i] = src[i];