Home | History | Annotate | Download | only in tls

Lines Matching refs:mp_int

23  * struct bignum is just typecast to mp_int.
32 struct bignum *n = os_zalloc(sizeof(mp_int));
35 if (mp_init((mp_int *) n) != MP_OKAY) {
50 mp_clear((mp_int *) n);
63 return mp_unsigned_bin_size((mp_int *) n);
77 size_t need = mp_unsigned_bin_size((mp_int *) n);
82 if (mp_to_unsigned_bin((mp_int *) n, buf) != MP_OKAY) {
101 if (mp_read_unsigned_bin((mp_int *) n, (u8 *) buf, len) != MP_OKAY) {
117 return mp_cmp((mp_int *) a, (mp_int *) b);
129 return mp_cmp_d((mp_int *) a, b);
143 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) {
161 if (mp_sub((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) {
179 if (mp_mul((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) {
198 if (mp_mulmod((mp_int *) a, (mp_int *) b, (mp_int *) c, (mp_int *) d)
218 if (mp_exptmod((mp_int *) a, (mp_int *) b, (mp_int *) c, (mp_int *) d)