Lines Matching refs:BIGNUM
158 printbignum(char *aname, BIGNUM *a) in printbignum()
230 big_init(BIGNUM *number, int size) in big_init()
265 big_init1(BIGNUM *number, int size, BIG_CHUNK_TYPE *buf, int bufsize) in big_init1()
291 big_finish(BIGNUM *number) in big_finish()
307 bytestring2bignum(BIGNUM *bn, uchar_t *kn, size_t len) in bytestring2bignum()
350 bignum2bytestring(uchar_t *kn, BIGNUM *bn, size_t len) in bignum2bytestring()
391 big_bitlength(BIGNUM *a) in big_bitlength()
416 big_copy(BIGNUM *dest, BIGNUM *src) in big_copy()
460 big_extend(BIGNUM *number, int size) in big_extend()
493 big_is_zero(BIGNUM *n) in big_is_zero()
508 big_add_abs(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_add_abs()
514 BIGNUM *longerarg; in big_add_abs()
586 big_sub_pos(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_sub_pos()
638 big_cmp_abs(BIGNUM *aa, BIGNUM *bb) in big_cmp_abs()
670 big_sub(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_sub()
714 big_add(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_add()
759 big_half_pos(BIGNUM *result, BIGNUM *aa) in big_half_pos()
791 big_double(BIGNUM *result, BIGNUM *aa) in big_double()
832 big_modhalf_pos(BIGNUM *aa, uint32_t b) in big_modhalf_pos()
858 big_sub_pos_high(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_sub_pos_high()
861 BIGNUM res1, aa1; in big_sub_pos_high()
887 big_cmp_abs_high(BIGNUM *aa, BIGNUM *bb) in big_cmp_abs_high()
890 BIGNUM aa1; in big_cmp_abs_high()
906 big_mulhalf_low(BIGNUM *result, BIGNUM *aa, BIG_CHUNK_TYPE b) in big_mulhalf_low()
936 big_mulhalf_high(BIGNUM *result, BIGNUM *aa, BIG_CHUNK_TYPE b) in big_mulhalf_high()
963 big_shiftleft(BIGNUM *result, BIGNUM *aa, int offs) in big_shiftleft()
992 big_shiftright(BIGNUM *result, BIGNUM *aa, int offs) in big_shiftright()
1020 big_div_pos(BIGNUM *result, BIGNUM *remainder, BIGNUM *aa, BIGNUM *bb) in big_div_pos()
1026 BIGNUM bbhigh, bblow, tresult, tmp1, tmp2; in big_div_pos()
1555 big_mul(BIGNUM *result, BIGNUM *aa, BIGNUM *bb) in big_mul()
1557 BIGNUM tmp1; in big_mul()
1568 BIGNUM *tt; in big_mul()
1664 big_mont_mul(BIGNUM *ret, BIGNUM *a, BIGNUM *b, BIGNUM *n, BIG_CHUNK_TYPE n0) in big_mont_mul()
1785 big_numbits(BIGNUM *n) in big_numbits()
1809 big_mont_rr(BIGNUM *result, BIGNUM *n) in big_mont_rr()
1811 BIGNUM rr; in big_mont_rr()
1841 big_mont_conv(BIGNUM *result, BIGNUM *a, BIGNUM *n, BIG_CHUNK_TYPE n0, in big_mont_conv()
1842 BIGNUM *n_rr) in big_mont_conv()
1844 BIGNUM rr; in big_mont_conv()
1891 big_modexp_ncp_int(BIGNUM *result, BIGNUM *ma, BIGNUM *e, BIGNUM *n, in big_modexp_ncp_int()
1892 BIGNUM *tmp, BIG_CHUNK_TYPE n0) in big_modexp_ncp_int()
1895 BIGNUM apowers[APOWERS_MAX_SIZE]; in big_modexp_ncp_int()
1896 BIGNUM tmp1; in big_modexp_ncp_int()
2044 big_modexp_ncp_float(BIGNUM *result, BIGNUM *ma, BIGNUM *e, BIGNUM *n, in big_modexp_ncp_float()
2045 BIGNUM *tmp, BIG_CHUNK_TYPE n0) in big_modexp_ncp_float()
2298 big_modexp_ext(BIGNUM *result, BIGNUM *a, BIGNUM *e, BIGNUM *n, BIGNUM *n_rr, in big_modexp_ext()
2301 BIGNUM ma, tmp, rr; in big_modexp_ext()
2384 big_modexp(BIGNUM *result, BIGNUM *a, BIGNUM *e, BIGNUM *n, BIGNUM *n_rr) in big_modexp()
2391 big_modexp_crt_ext(BIGNUM *result, BIGNUM *a, BIGNUM *dmodpminus1, in big_modexp_crt_ext()
2392 BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq, in big_modexp_crt_ext()
2393 BIGNUM *p_rr, BIGNUM *q_rr, big_modexp_ncp_info_t *info) in big_modexp_crt_ext()
2395 BIGNUM ap, aq, tmp; in big_modexp_crt_ext()
2491 big_modexp_crt(BIGNUM *result, BIGNUM *a, BIGNUM *dmodpminus1, in big_modexp_crt()
2492 BIGNUM *dmodqminus1, BIGNUM *p, BIGNUM *q, BIGNUM *pinvmodq, in big_modexp_crt()
2493 BIGNUM *p_rr, BIGNUM *q_rr) in big_modexp_crt()
2502 BIGNUM big_One = {1, 1, 1, 0, onearr};
2507 BIGNUM big_Two = {1, 1, 1, 0, twoarr};
2511 static BIGNUM big_Four = {1, 1, 1, 0, fourarr};
2515 big_sqrt_pos(BIGNUM *result, BIGNUM *n) in big_sqrt_pos()
2517 BIGNUM *high, *low, *mid, *t; in big_sqrt_pos()
2518 BIGNUM t1, t2, t3, prod; in big_sqrt_pos()
2607 big_Jacobi_pos(int *jac, BIGNUM *nn, BIGNUM *mm) in big_Jacobi_pos()
2609 BIGNUM *t, *tmp2, *m, *n; in big_Jacobi_pos()
2610 BIGNUM t1, t2, t3; in big_Jacobi_pos()
2692 big_Lucas(BIGNUM *Lkminus1, BIGNUM *Lk, BIGNUM *p, BIGNUM *k, BIGNUM *n) in big_Lucas()
2697 BIGNUM ki, tmp, tmp2; in big_Lucas()
2790 big_isprime_pos_ext(BIGNUM *n, big_modexp_ncp_info_t *info) in big_isprime_pos_ext()
2792 BIGNUM o, nminus1, tmp, Lkminus1, Lk; in big_isprime_pos_ext()
2917 big_isprime_pos(BIGNUM *n) in big_isprime_pos()
2927 big_nextprime_pos_ext(BIGNUM *result, BIGNUM *n, big_modexp_ncp_info_t *info) in big_nextprime_pos_ext()
2984 big_nextprime_pos(BIGNUM *result, BIGNUM *n) in big_nextprime_pos()
2991 big_nextprime_pos_slow(BIGNUM *result, BIGNUM *n) in big_nextprime_pos_slow()
3014 big_ext_gcd_pos(BIGNUM *gcd, BIGNUM *cm, BIGNUM *ce, BIGNUM *m, BIGNUM *e) in big_ext_gcd_pos()
3016 BIGNUM *xi, *ri, *riminus1, *riminus2, *t; in big_ext_gcd_pos()
3017 BIGNUM *vmi, *vei, *vmiminus1, *veiminus1; in big_ext_gcd_pos()
3018 BIGNUM t1, t2, t3, t4, t5, t6, t7, t8, tmp; in big_ext_gcd_pos()
3161 big_random(BIGNUM *r, size_t rlen, int (*rfunc)(void *, size_t)) in big_random()