Home | History | Annotate | Download | only in headers

Lines Matching refs:ltc_mp

422 extern ltc_math_descriptor ltc_mp;
441 #define MP_DIGIT_BIT ltc_mp.bits_per_digit
444 #define mp_init(a) ltc_mp.init(a)
446 #define mp_clear(a) ltc_mp.deinit(a)
448 #define mp_init_copy(a, b) ltc_mp.init_copy(a, b)
450 #define mp_neg(a, b) ltc_mp.neg(a, b)
451 #define mp_copy(a, b) ltc_mp.copy(a, b)
453 #define mp_set(a, b) ltc_mp.set_int(a, b)
454 #define mp_set_int(a, b) ltc_mp.set_int(a, b)
455 #define mp_get_int(a) ltc_mp.get_int(a)
456 #define mp_get_digit(a, n) ltc_mp.get_digit(a, n)
457 #define mp_get_digit_count(a) ltc_mp.get_digit_count(a)
458 #define mp_cmp(a, b) ltc_mp.compare(a, b)
459 #define mp_cmp_d(a, b) ltc_mp.compare_d(a, b)
460 #define mp_count_bits(a) ltc_mp.count_bits(a)
461 #define mp_cnt_lsb(a) ltc_mp.count_lsb_bits(a)
462 #define mp_2expt(a, b) ltc_mp.twoexpt(a, b)
464 #define mp_read_radix(a, b, c) ltc_mp.read_radix(a, b, c)
465 #define mp_toradix(a, b, c) ltc_mp.write_radix(a, b, c)
466 #define mp_unsigned_bin_size(a) ltc_mp.unsigned_size(a)
467 #define mp_to_unsigned_bin(a, b) ltc_mp.unsigned_write(a, b)
468 #define mp_read_unsigned_bin(a, b, c) ltc_mp.unsigned_read(a, b, c)
470 #define mp_add(a, b, c) ltc_mp.add(a, b, c)
471 #define mp_add_d(a, b, c) ltc_mp.addi(a, b, c)
472 #define mp_sub(a, b, c) ltc_mp.sub(a, b, c)
473 #define mp_sub_d(a, b, c) ltc_mp.subi(a, b, c)
474 #define mp_mul(a, b, c) ltc_mp.mul(a, b, c)
475 #define mp_mul_d(a, b, c) ltc_mp.muli(a, b, c)
476 #define mp_sqr(a, b) ltc_mp.sqr(a, b)
477 #define mp_div(a, b, c, d) ltc_mp.mpdiv(a, b, c, d)
478 #define mp_div_2(a, b) ltc_mp.div_2(a, b)
479 #define mp_mod(a, b, c) ltc_mp.mpdiv(a, b, NULL, c)
480 #define mp_mod_d(a, b, c) ltc_mp.modi(a, b, c)
481 #define mp_gcd(a, b, c) ltc_mp.gcd(a, b, c)
482 #define mp_lcm(a, b, c) ltc_mp.lcm(a, b, c)
484 #define mp_mulmod(a, b, c, d) ltc_mp.mulmod(a, b, c, d)
485 #define mp_sqrmod(a, b, c) ltc_mp.sqrmod(a, b, c)
486 #define mp_invmod(a, b, c) ltc_mp.invmod(a, b, c)
488 #define mp_montgomery_setup(a, b) ltc_mp.montgomery_setup(a, b)
489 ltc_mp.montgomery_normalization(a, b)
490 #define mp_montgomery_reduce(a, b, c) ltc_mp.montgomery_reduce(a, b, c)
491 #define mp_montgomery_free(a) ltc_mp.montgomery_deinit(a)
493 #define mp_exptmod(a,b,c,d) ltc_mp.exptmod(a,b,c,d)
494 #define mp_prime_is_prime(a, b, c) ltc_mp.isprime(a, c)