Searched refs:mp_mod (Results 1 - 25 of 35) sorted by relevance

12

/external/dropbear/libtommath/
H A Dbn_mp_addmod.c33 res = mp_mod (&t, c, d);
H A Dbn_mp_mulmod.c32 res = mp_mod (&t, c, d);
H A Dbn_mp_sqrmod.c33 res = mp_mod (&t, b, c);
H A Dbn_mp_submod.c34 res = mp_mod (&t, c, d);
H A Dbn_mp_mod.c20 mp_mod (mp_int * a, mp_int * b, mp_int * c) function
H A Dbn_mp_is_square.c77 if ((res = mp_mod(arg,&t,&t)) != MP_OKAY) {
83 * is already equal to MP_OKAY from the mp_mod call
H A Dbn_mp_jacobi.c86 if ((res = mp_mod (p, &a1, &p1)) != MP_OKAY) {
H A Dbn_fast_mp_invmod.c45 if ((res = mp_mod (a, b, &y)) != MP_OKAY) {
H A Dbn_mp_invmod_slow.c36 if ((res = mp_mod(a, b, &x)) != MP_OKAY) {
H A Dbn_s_mp_exptmod.c96 if ((err = mp_mod (G, P, &M[1])) != MP_OKAY) {
H A Dbn_mp_exptmod_fast.c164 if ((err = mp_mod(G, P, &M[1])) != MP_OKAY) {
/external/dropbear/libtomcrypt/src/pk/ecc/
H A Dltc_ecc_map.c54 if ((err = mp_mod(t2, modulus, t2)) != CRYPT_OK) { goto done; }
56 if ((err = mp_mod(t1, modulus, t1)) != CRYPT_OK) { goto done; }
H A Decc_sign_hash.c79 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; }
88 if ((err = mp_mod(s, p, s)) != CRYPT_OK) { goto error; } /* s = e + xr */
H A Decc_import.c44 if ((err = mp_mod(t2, prime, t2)) != CRYPT_OK) { goto error; }
54 if ((err = mp_mod(t1, prime, t1)) != CRYPT_OK) { goto error; }
H A Decc_verify_hash.c142 if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) { goto error; }
/external/dropbear/libtomcrypt/src/pk/katja/
H A Dkatja_make_key.c79 if ((err = mp_mod( key->d, tmp1, key->dP)) != CRYPT_OK) { goto error2; } /* dP = d mod p-1 */
80 if ((err = mp_mod( key->d, tmp2, key->dQ)) != CRYPT_OK) { goto error2; } /* dQ = d mod q-1 */
/external/dropbear/libtomcrypt/src/pk/rsa/
H A Drsa_make_key.c88 if ((err = mp_mod( key->d, tmp1, key->dP)) != CRYPT_OK) { goto errkey; } /* dP = d mod p-1 */
89 if ((err = mp_mod( key->d, tmp2, key->dQ)) != CRYPT_OK) { goto errkey; } /* dQ = d mod q-1 */
/external/dropbear/
H A Ddss.c242 if (mp_mod(&val4, key->q, &val2) != MP_OKAY) {
344 if (mp_mod(&dss_protok, key->q, &dss_k) != MP_OKAY) {
361 if (mp_mod(&dss_temp1, key->q, &dss_r) != MP_OKAY) {
H A Dgendss.c119 if (mp_mod(&tempX, &temp2q, &tempC) != MP_OKAY) {
/external/dropbear/libtomcrypt/src/pk/dsa/
H A Ddsa_verify_hash.c71 if ((err = mp_mod(v, key->q, v)) != CRYPT_OK) { goto error; }
H A Ddsa_sign_hash.c88 if ((err = mp_mod(r, key->q, r)) != CRYPT_OK) { goto error; }
/external/dropbear/libtommath/demo/
H A Ddemo.c90 mp_mod(&d, &a, &d);
272 mp_mod(&c, &a, &c);
324 mp_mod(&b, &a, &b);
364 mp_mod(&b, &a, &b);
374 mp_mod(&c, &a, &c);
H A Dtiming.c252 mp_mod(&b, &c, &b);
/external/dropbear/libtommath/mtest/
H A Dmpi.c1345 /* {{{ mp_mod(a, m, c) */
1348 mp_mod(a, m, c)
1353 mp_err mp_mod(mp_int *a, mp_int *m, mp_int *c) function
1402 } /* end mp_mod() */
1541 if((res = mp_mod(c, m, c)) != MP_OKAY)
1566 if((res = mp_mod(c, m, c)) != MP_OKAY)
1591 if((res = mp_mod(c, m, c)) != MP_OKAY)
1611 if((res = mp_mod(c, m, c)) != MP_OKAY)
1651 if((res = mp_mod(&x, m, &x)) != MP_OKAY ||
1738 (res = mp_mod(
[all...]
/external/dropbear/libtomcrypt/src/headers/
H A Dtomcrypt_math.h479 #define mp_mod(a, b, c) ltc_mp.mpdiv(a, b, NULL, c) macro

Completed in 98 milliseconds

12