• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenSSH-189/osslshim/ossl/

Lines Matching defs:BIGNUM

164 /* get a clone of a BIGNUM with changed flags, for *temporary* use only
244 } BIGNUM;
246 /* BIGNUM flags: */
264 BIGNUM RR; /* used to convert to montgomery form */
265 BIGNUM N; /* The modulus */
266 BIGNUM Ni; /* R*(1/R mod N) - N*Ni = 1
277 BIGNUM *BN_new(void);
278 void BN_init(BIGNUM *);
279 void BN_free(BIGNUM *);
280 void BN_clear_free(BIGNUM *);
281 void BN_clear(BIGNUM *);
282 BIGNUM *BN_dup(const BIGNUM *);
283 BIGNUM *BN_copy(BIGNUM *, const BIGNUM *);
285 int BN_num_bits(const BIGNUM *);
288 int BN_num_bytes(const BIGNUM *);
290 int BN_cmp(const BIGNUM *, const BIGNUM *);
291 int BN_ucmp(const BIGNUM *, const BIGNUM *);
293 void BN_set_negative(BIGNUM *, int);
295 int BN_is_bit_set(const BIGNUM *, int);
296 int BN_set_bit(BIGNUM *, int);
297 int BN_clear_bit(BIGNUM *, int);
298 int BN_mask_bits(BIGNUM *, int);
300 int BN_set_word(BIGNUM *, BN_ULONG);
301 BN_ULONG BN_get_word(const BIGNUM *);
302 int BN_add_word(BIGNUM *a, BN_ULONG num);
303 int BN_sub_word(BIGNUM *a, BN_ULONG num);
305 BN_ULONG BN_div_word(BIGNUM *, BN_ULONG);
306 BN_ULONG BN_mod_word(const BIGNUM *a, BN_ULONG w);
308 int BN_mul_word(BIGNUM *, BN_ULONG);
310 int BN_mod_exp_mont_word(BIGNUM *rr, BN_ULONG a, const BIGNUM *p,
311 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont);
312 int BN_mod_exp_mont(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
313 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont);
314 int BN_mod_exp2_mont(BIGNUM *rr, const BIGNUM *a1, const BIGNUM *p1,
315 const BIGNUM *a2, const BIGNUM *p2, const BIGNUM *m,
317 int BN_mod_exp_mont_consttime(BIGNUM *rr, const BIGNUM *a, const BIGNUM *p,
318 const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *in_mont);
320 int BN_lshift(BIGNUM *, const BIGNUM *, int);
321 int BN_lshift1(BIGNUM *, const BIGNUM *);
322 int BN_rshift(BIGNUM *, const BIGNUM *, int);
323 int BN_rshift1(BIGNUM *, const BIGNUM *);
325 BIGNUM *BN_bin2bn(const unsigned char *, int len, BIGNUM *);
326 int BN_bn2bin(const BIGNUM *, unsigned char *);
327 int BN_hex2bn(BIGNUM **, const char *);
328 char *BN_bn2hex(const BIGNUM *);
329 int BN_print(void *fp, const BIGNUM *a);
330 int BN_print_fp(FILE *, const BIGNUM *);
332 int BN_uadd(BIGNUM *, const BIGNUM *, const BIGNUM *);
333 int BN_usub(BIGNUM *, const BIGNUM *, const BIGNUM *);
334 int BN_sub(BIGNUM *, const BIGNUM *, const BIGNUM *);
335 int BN_add(BIGNUM *, const BIGNUM *, const BIGNUM *);
337 int BN_div(BIGNUM *, BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
338 int BN_mul(BIGNUM *r, const BIGNUM *a, const BIGNUM *b, BN_CTX *ctx);
340 int BN_mod(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
341 int BN_mod_mul(BIGNUM *, const BIGNUM *, const BIGNUM *,
342 const BIGNUM *, BN_CTX *);
343 int BN_mod_exp(BIGNUM *, const BIGNUM *, const BIGNUM *,
344 const BIGNUM *, BN_CTX *);
345 BIGNUM *BN_mod_inverse(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *ctx);
347 int BN_sqr(BIGNUM *r, const BIGNUM *a, BN_CTX *ctx);
349 int BN_is_prime_ex(const BIGNUM *a, int checks, BN_CTX *ctx_passed, BN_GENCB *cb);
350 int BN_is_prime_fasttest_ex(const BIGNUM *p, int nchecks, BN_CTX *ctx,
353 const BIGNUM *BN_value_one(void);
355 int BN_rand(BIGNUM *, int, int, int);
356 int BN_pseudo_rand(BIGNUM *, int, int, int);
357 int BN_rand_range(BIGNUM *, const BIGNUM *);
358 int BN_pseudo_rand_range(BIGNUM *, const BIGNUM *);
360 int BN_generate_prime_ex(BIGNUM *, int, int, const BIGNUM *, const BIGNUM *, BN_GENCB *);
361 int BN_gcd(BIGNUM *, const BIGNUM *, const BIGNUM *, BN_CTX *);
368 BIGNUM *BN_CTX_get(BN_CTX *);
372 int BN_mod_mul_montgomery(BIGNUM *r, const BIGNUM *a, const BIGNUM *b,
374 int BN_from_montgomery(BIGNUM *ret, const BIGNUM *a,
379 int BN_MONT_CTX_set(BN_MONT_CTX *mont, const BIGNUM *mod, BN_CTX *ctx);
382 const BIGNUM *mod, BN_CTX *ctx);
384 int BN_dec2bn(BIGNUM **a, const char *str);
385 char *BN_bn2dec(const BIGNUM *a);