Home
last modified time | relevance | path

Searched refs:mp_mod (Results 1 – 25 of 34) sorted by relevance

12

/external/dropbear/libtomcrypt/src/pk/ecc/
Dltc_ecc_map.c54 if ((err = mp_mod(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
56 if ((err = mp_mod(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
Decc_sign_hash.c79 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; } in ecc_sign_hash()
88 …if ((err = mp_mod(s, p, s)) != CRYPT_OK) { goto error; } /* s = e + x… in ecc_sign_hash()
Decc_import.c44 …if ((err = mp_mod(t2, prime, t2)) != CRYPT_OK) { goto … in is_point()
54 …if ((err = mp_mod(t1, prime, t1)) != CRYPT_OK) { goto … in is_point()
Decc_verify_hash.c142 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_verify_hash()
/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_make_key.c79 …if ((err = mp_mod( key->d, tmp1, key->dP)) != CRYPT_OK) { goto error2; } /* dP = d mod… in katja_make_key()
80 …if ((err = mp_mod( key->d, tmp2, key->dQ)) != CRYPT_OK) { goto error2; } /* dQ = d mod… in katja_make_key()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_make_key.c88 …if ((err = mp_mod( key->d, tmp1, key->dP)) != CRYPT_OK) { goto errkey; } /* dP = d mod… in rsa_make_key()
89 …if ((err = mp_mod( key->d, tmp2, key->dQ)) != CRYPT_OK) { goto errkey; } /* dQ = d mod… in rsa_make_key()
/external/dropbear/libtommath/
Dbn_mp_sqrmod.c33 res = mp_mod (&t, b, c); in mp_sqrmod()
Dbn_mp_addmod.c33 res = mp_mod (&t, c, d); in mp_addmod()
Dbn_mp_mulmod.c32 res = mp_mod (&t, c, d); in mp_mulmod()
Dbn_mp_submod.c34 res = mp_mod (&t, c, d); in mp_submod()
Dbn_mp_mod.c20 mp_mod (mp_int * a, mp_int * b, mp_int * c) in mp_mod() function
Dbn_mp_is_square.c77 if ((res = mp_mod(arg,&t,&t)) != MP_OKAY) { in mp_is_square()
Dbn_mp_jacobi.c86 if ((res = mp_mod (p, &a1, &p1)) != MP_OKAY) { in mp_jacobi()
Dbn_fast_mp_invmod.c45 if ((res = mp_mod (a, b, &y)) != MP_OKAY) { in fast_mp_invmod()
Dbn_mp_invmod_slow.c36 if ((res = mp_mod(a, b, &x)) != MP_OKAY) { in mp_invmod_slow()
Dbn_s_mp_exptmod.c96 if ((err = mp_mod (G, P, &M[1])) != MP_OKAY) { in s_mp_exptmod()
Dbn_mp_exptmod_fast.c164 if ((err = mp_mod(G, P, &M[1])) != MP_OKAY) { in mp_exptmod_fast()
/external/dropbear/
Ddss.c242 if (mp_mod(&val4, key->q, &val2) != MP_OKAY) { in buf_dss_verify()
344 if (mp_mod(&dss_protok, key->q, &dss_k) != MP_OKAY) { in buf_put_dss_sign()
361 if (mp_mod(&dss_temp1, key->q, &dss_r) != MP_OKAY) { in buf_put_dss_sign()
Dgendss.c119 if (mp_mod(&tempX, &temp2q, &tempC) != MP_OKAY) { in getp()
/external/dropbear/libtommath/demo/
Ddemo.c90 mp_mod(&d, &a, &d); in main()
272 mp_mod(&c, &a, &c); in main()
324 mp_mod(&b, &a, &b); in main()
364 mp_mod(&b, &a, &b); in main()
374 mp_mod(&c, &a, &c); in main()
Dtiming.c252 mp_mod(&b, &c, &b); in main()
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_verify_hash.c71 …if ((err = mp_mod(v, key->q, v)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
Ddsa_sign_hash.c88 …if ((err = mp_mod(r, key->q, r)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
/external/dropbear/libtommath/mtest/
Dmpi.c1353 mp_err mp_mod(mp_int *a, mp_int *m, mp_int *c) in mp_mod() function
1541 if((res = mp_mod(c, m, c)) != MP_OKAY) in mp_addmod()
1566 if((res = mp_mod(c, m, c)) != MP_OKAY) in mp_submod()
1591 if((res = mp_mod(c, m, c)) != MP_OKAY) in mp_mulmod()
1611 if((res = mp_mod(c, m, c)) != MP_OKAY) in mp_sqrmod()
1651 if((res = mp_mod(&x, m, &x)) != MP_OKAY || in mp_exptmod()
1738 (res = mp_mod(&s, m, &s)) != MP_OKAY) in mp_exptmod_d()
1745 (res = mp_mod(&x, m, &x)) != MP_OKAY) in mp_exptmod_d()
2206 res = mp_mod(&x, m, c); in mp_invmod()
/external/dropbear/libtomcrypt/src/math/fp/
Dltc_ecc_fp_mulmod.c811 if ((err = mp_mod(k, order, tk)) != CRYPT_OK) { in accel_fp_mul()
936 if ((err = mp_mod(kA, order, tka)) != CRYPT_OK) { in accel_fp_mul2add()
974 if ((err = mp_mod(kB, order, tkb)) != CRYPT_OK) { in accel_fp_mul2add()

12