Lines Matching refs:BIGNUM

9     pub fn BN_rand(r: *mut BIGNUM, bits: c_int, top: c_int, bottom: c_int) -> c_int;
11 pub fn BN_pseudo_rand(r: *mut BIGNUM, bits: c_int, top: c_int, bottom: c_int) -> c_int;
12 pub fn BN_rand_range(r: *mut BIGNUM, range: *const BIGNUM) -> c_int;
14 pub fn BN_pseudo_rand_range(r: *mut BIGNUM, range: *const BIGNUM) -> c_int;
15 pub fn BN_new() -> *mut BIGNUM;
17 pub fn BN_secure_new() -> *mut BIGNUM;
19 pub fn BN_set_flags(b: *mut BIGNUM, n: c_int);
21 pub fn BN_get_flags(b: *const BIGNUM, n: c_int) -> c_int;
22 pub fn BN_num_bits(bn: *const BIGNUM) -> c_int;
23 pub fn BN_clear_free(bn: *mut BIGNUM);
24 pub fn BN_bin2bn(s: *const u8, size: c_int, ret: *mut BIGNUM) -> *mut BIGNUM;
25 pub fn BN_bn2bin(a: *const BIGNUM, to: *mut u8) -> c_int;
27 pub fn BN_bn2binpad(a: *const BIGNUM, to: *mut u8, tolen: c_int) -> c_int;
28 pub fn BN_sub(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> c_int;
29 pub fn BN_add(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM) -> c_int;
30 pub fn BN_mul(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM, ctx: *mut BN_CTX) -> c_int;
31 pub fn BN_sqr(r: *mut BIGNUM, a: *const BIGNUM, ctx: *mut BN_CTX) -> c_int;
32 pub fn BN_set_negative(bn: *mut BIGNUM, n: c_int);
34 pub fn BN_is_negative(b: *const BIGNUM) -> c_int;
36 pub fn BN_is_odd(b: *const BIGNUM) -> c_int;
39 dv: *mut BIGNUM,
40 rem: *mut BIGNUM,
41 a: *const BIGNUM,
42 b: *const BIGNUM,
46 rem: *mut BIGNUM,
47 a: *const BIGNUM,
48 m: *const BIGNUM,
52 r: *mut BIGNUM,
53 a: *const BIGNUM,
54 b: *const BIGNUM,
55 m: *const BIGNUM,
59 r: *mut BIGNUM,
60 a: *const BIGNUM,
61 b: *const BIGNUM,
62 m: *const BIGNUM,
66 r: *mut BIGNUM,
67 a: *const BIGNUM,
68 b: *const BIGNUM,
69 m: *const BIGNUM,
73 r: *mut BIGNUM,
74 a: *const BIGNUM,
75 m: *const BIGNUM,
80 ret: *mut BIGNUM,
81 a: *const BIGNUM,
82 p: *const BIGNUM,
84 ) -> *mut BIGNUM;
86 pub fn BN_mod_word(r: *const BIGNUM, w: BN_ULONG) -> BN_ULONG;
87 pub fn BN_div_word(r: *mut BIGNUM, w: BN_ULONG) -> BN_ULONG;
88 pub fn BN_mul_word(r: *mut BIGNUM, w: BN_ULONG) -> c_int;
89 pub fn BN_add_word(r: *mut BIGNUM, w: BN_ULONG) -> c_int;
90 pub fn BN_sub_word(r: *mut BIGNUM, w: BN_ULONG) -> c_int;
91 pub fn BN_set_word(bn: *mut BIGNUM, n: BN_ULONG) -> c_int;
93 pub fn BN_cmp(a: *const BIGNUM, b: *const BIGNUM) -> c_int;
94 pub fn BN_free(bn: *mut BIGNUM);
95 pub fn BN_is_bit_set(a: *const BIGNUM, n: c_int) -> c_int;
96 pub fn BN_lshift(r: *mut BIGNUM, a: *const BIGNUM, n: c_int) -> c_int;
97 pub fn BN_lshift1(r: *mut BIGNUM, a: *const BIGNUM) -> c_int;
98 pub fn BN_exp(r: *mut BIGNUM, a: *const BIGNUM, p: *const BIGNUM, ctx: *mut BN_CTX) -> c_int;
101 r: *mut BIGNUM,
102 a: *const BIGNUM,
103 p: *const BIGNUM,
104 m: *const BIGNUM,
108 pub fn BN_mask_bits(a: *mut BIGNUM, n: c_int) -> c_int;
109 pub fn BN_rshift(r: *mut BIGNUM, a: *const BIGNUM, n: c_int) -> c_int;
110 pub fn BN_rshift1(r: *mut BIGNUM, a: *const BIGNUM) -> c_int;
111 pub fn BN_bn2hex(a: *const BIGNUM) -> *mut c_char;
112 pub fn BN_bn2dec(a: *const BIGNUM) -> *mut c_char;
113 pub fn BN_hex2bn(a: *mut *mut BIGNUM, s: *const c_char) -> c_int;
114 pub fn BN_dec2bn(a: *mut *mut BIGNUM, s: *const c_char) -> c_int;
115 pub fn BN_gcd(r: *mut BIGNUM, a: *const BIGNUM, b: *const BIGNUM, ctx: *mut BN_CTX) -> c_int;
117 r: *mut BIGNUM,
118 a: *const BIGNUM,
119 n: *const BIGNUM,
121 ) -> *mut BIGNUM;
122 pub fn BN_clear(bn: *mut BIGNUM);
123 pub fn BN_dup(n: *const BIGNUM) -> *mut BIGNUM;
124 pub fn BN_ucmp(a: *const BIGNUM, b: *const BIGNUM) -> c_int;
125 pub fn BN_set_bit(a: *mut BIGNUM, n: c_int) -> c_int;
126 pub fn BN_clear_bit(a: *mut BIGNUM, n: c_int) -> c_int;
129 r: *mut BIGNUM,
132 add: *const BIGNUM,
133 rem: *const BIGNUM,
138 p: *const BIGNUM,
145 p: *const BIGNUM,
156 pub fn BN_get_rfc2409_prime_768(bn: *mut BIGNUM) -> *mut BIGNUM;
157 pub fn BN_get_rfc2409_prime_1024(bn: *mut BIGNUM) -> *mut BIGNUM;
158 pub fn BN_get_rfc3526_prime_1536(bn: *mut BIGNUM) -> *mut BIGNUM;
159 pub fn BN_get_rfc3526_prime_2048(bn: *mut BIGNUM) -> *mut BIGNUM;
160 pub fn BN_get_rfc3526_prime_3072(bn: *mut BIGNUM) -> *mut BIGNUM;
161 pub fn BN_get_rfc3526_prime_4096(bn: *mut BIGNUM) -> *mut BIGNUM;
162 pub fn BN_get_rfc3526_prime_6144(bn: *mut BIGNUM) -> *mut BIGNUM;
163 pub fn BN_get_rfc3526_prime_8192(bn: *mut BIGNUM) -> *mut BIGNUM;
167 pub fn get_rfc2409_prime_768(bn: *mut BIGNUM) -> *mut BIGNUM;
168 pub fn get_rfc2409_prime_1024(bn: *mut BIGNUM) -> *mut BIGNUM;
169 pub fn get_rfc3526_prime_1536(bn: *mut BIGNUM) -> *mut BIGNUM;
170 pub fn get_rfc3526_prime_2048(bn: *mut BIGNUM) -> *mut BIGNUM;
171 pub fn get_rfc3526_prime_3072(bn: *mut BIGNUM) -> *mut BIGNUM;
172 pub fn get_rfc3526_prime_4096(bn: *mut BIGNUM) -> *mut BIGNUM;
173 pub fn get_rfc3526_prime_6144(bn: *mut BIGNUM) -> *mut BIGNUM;
174 pub fn get_rfc3526_prime_8192(bn: *mut BIGNUM) -> *mut BIGNUM;