Lines Matching full:bignum
134 const BIGNUM *BN_value_one(void)
137 static const BIGNUM const_one={(BN_ULONG *)&data_one,1,1,0,BN_FLG_STATIC_DATA};
248 int BN_num_bits(const BIGNUM *a)
257 void BN_clear_free(BIGNUM *a)
270 OPENSSL_cleanse(a,sizeof(BIGNUM));
275 void BN_free(BIGNUM *a)
292 void BN_init(BIGNUM *a)
294 memset(a,0,sizeof(BIGNUM));
298 BIGNUM *BN_new(void)
300 BIGNUM *ret;
302 if ((ret=(BIGNUM *)OPENSSL_malloc(sizeof(BIGNUM))) == NULL)
318 static BN_ULONG *bn_expand_internal(const BIGNUM *b, int words)
389 * will allocate new memory for the BIGNUM data twice, and free it once,
394 BIGNUM *bn_dup_expand(const BIGNUM *b, int words)
396 BIGNUM *r = NULL;
442 * It is mostly used by the various BIGNUM routines. If there is an error,
445 BIGNUM *bn_expand2(BIGNUM *b, int words)
460 /* NB: bn_wexpand() calls this only if the BIGNUM really has to grow */
479 BIGNUM *BN_dup(const BIGNUM *a)
481 BIGNUM *t;
497 BIGNUM *BN_copy(BIGNUM *a, const BIGNUM *b)
534 void BN_swap(BIGNUM *a, BIGNUM *b)
567 void BN_clear(BIGNUM *a)
576 BN_ULONG BN_get_word(const BIGNUM *a)
586 int BN_set_word(BIGNUM *a, BN_ULONG w)
597 BIGNUM *BN_bin2bn(const unsigned char *s, int len, BIGNUM *ret)
602 BIGNUM *bn = NULL;
641 int BN_bn2bin(const BIGNUM *a, unsigned char *to)
656 int BN_ucmp(const BIGNUM *a, const BIGNUM *b)
678 int BN_cmp(const BIGNUM *a, const BIGNUM *b)
719 int BN_set_bit(BIGNUM *a, int n)
741 int BN_clear_bit(BIGNUM *a, int n)
757 int BN_is_bit_set(const BIGNUM *a, int n)
769 int BN_mask_bits(BIGNUM *a, int n)
790 void BN_set_negative(BIGNUM *a, int b)