Home
last modified time | relevance | path

Searched refs:MP_OKAY (Results 1 – 5 of 5) sorted by relevance

/external/wpa_supplicant_8/src/tls/
Dlibtommath.c101 #define MP_OKAY 0 /* ok result */ macro
240 if ((res = mp_grow (c, max + 1)) != MP_OKAY) { in s_mp_add()
303 return MP_OKAY; in s_mp_add()
318 if ((res = mp_grow (c, max)) != MP_OKAY) { in s_mp_sub()
370 return MP_OKAY; in s_mp_sub()
396 return MP_OKAY; in mp_init()
545 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mulmod()
549 if ((res = mp_mul (a, b, &t)) != MP_OKAY) { in mp_mulmod()
565 if ((res = mp_init (&t)) != MP_OKAY) { in mp_mod()
569 if ((res = mp_div (a, b, NULL, &t)) != MP_OKAY) { in mp_mod()
[all …]
Dbignum.c35 if (mp_init((mp_int *) n) != MP_OKAY) { in bignum_init()
82 if (mp_to_unsigned_bin((mp_int *) n, buf) != MP_OKAY) { in bignum_get_unsigned_bin()
101 if (mp_read_unsigned_bin((mp_int *) n, (u8 *) buf, len) != MP_OKAY) { in bignum_set_unsigned_bin()
143 if (mp_add((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_add()
161 if (mp_sub((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_sub()
179 if (mp_mul((mp_int *) a, (mp_int *) b, (mp_int *) c) != MP_OKAY) { in bignum_mul()
199 != MP_OKAY) { in bignum_mulmod()
219 != MP_OKAY) { in bignum_exptmod()
/external/wpa_supplicant_8/src/crypto/
Dcrypto_wolfssl.c1016 if (!a || mp_init(a) != MP_OKAY) { in crypto_bignum_init()
1036 if (mp_read_unsigned_bin(a, buf, len) != MP_OKAY) { in crypto_bignum_init_set()
1109 (mp_int *) r) == MP_OKAY ? 0 : -1; in crypto_bignum_add()
1118 (mp_int *) r) == MP_OKAY ? 0 : -1; in crypto_bignum_mod()
1131 (mp_int *) r) == MP_OKAY ? 0 : -1; in crypto_bignum_exptmod()
1143 (mp_int *) r) == MP_OKAY ? 0 : -1; in crypto_bignum_inverse()
1155 (mp_int *) r) == MP_OKAY ? 0 : -1; in crypto_bignum_sub()
1167 NULL) == MP_OKAY ? 0 : -1; in crypto_bignum_div()
1180 (mp_int *) d) == MP_OKAY ? 0 : -1; in crypto_bignum_mulmod()
1187 if (mp_copy((mp_int *) a, (mp_int *) r) != MP_OKAY) in crypto_bignum_rshift()
[all …]
/external/python/cpython3/Modules/
D_tkinter.c958 if (mp_read_radix(&bigValue, hexchars, 16) != MP_OKAY) { in asBignumObj()
1159 &numBytes) != MP_OKAY) { in fromBignumObj()
/external/python/cpython2/Modules/
D_tkinter.c1069 if (mp_read_radix(&bigValue, hexchars, 16) != MP_OKAY) { in asBignumObj()
1274 &numBytes) != MP_OKAY) { in fromBignumObj()