Lines Matching refs:bignum
30 struct bignum * bignum_init(void) in bignum_init()
32 struct bignum *n = os_zalloc(sizeof(mp_int)); in bignum_init()
47 void bignum_deinit(struct bignum *n) in bignum_deinit()
61 size_t bignum_get_unsigned_bin_len(struct bignum *n) in bignum_get_unsigned_bin_len()
75 int bignum_get_unsigned_bin(const struct bignum *n, u8 *buf, size_t *len) in bignum_get_unsigned_bin()
99 int bignum_set_unsigned_bin(struct bignum *n, const u8 *buf, size_t len) in bignum_set_unsigned_bin()
115 int bignum_cmp(const struct bignum *a, const struct bignum *b) in bignum_cmp()
127 int bignum_cmp_d(const struct bignum *a, unsigned long b) in bignum_cmp_d()
140 int bignum_add(const struct bignum *a, const struct bignum *b, in bignum_add()
141 struct bignum *c) in bignum_add()
158 int bignum_sub(const struct bignum *a, const struct bignum *b, in bignum_sub()
159 struct bignum *c) in bignum_sub()
176 int bignum_mul(const struct bignum *a, const struct bignum *b, in bignum_mul()
177 struct bignum *c) in bignum_mul()
195 int bignum_mulmod(const struct bignum *a, const struct bignum *b, in bignum_mulmod()
196 const struct bignum *c, struct bignum *d) in bignum_mulmod()
215 int bignum_exptmod(const struct bignum *a, const struct bignum *b, in bignum_exptmod()
216 const struct bignum *c, struct bignum *d) in bignum_exptmod()