Lines Matching refs:bignum
36 struct bignum * bignum_init(void) in bignum_init()
38 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init()
53 void bignum_deinit(struct bignum *n) in bignum_deinit()
67 size_t bignum_get_unsigned_bin_len(struct bignum *n) in bignum_get_unsigned_bin_len()
81 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len) in bignum_get_unsigned_bin()
105 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len) in bignum_set_unsigned_bin()
121 int bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp()
133 int bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d()
146 int bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add()
147 struct bignum *c) in bignum_add()
164 int bignum_sub(const struct bignum *a, const struct bignum *b, in bignum_sub()
165 struct bignum *c) in bignum_sub()
182 int bignum_mul(const struct bignum *a, const struct bignum *b, in bignum_mul()
183 struct bignum *c) in bignum_mul()
201 int bignum_mulmod(const struct bignum *a, const struct bignum *b, in bignum_mulmod()
202 const struct bignum *c, struct bignum *d) in bignum_mulmod()
221 int bignum_exptmod(const struct bignum *a, const struct bignum *b, in bignum_exptmod()
222 const struct bignum *c, struct bignum *d) in bignum_exptmod()