Home
last modified time | relevance | path

Searched refs:mp_invmod (Results 1 – 25 of 26) sorted by relevance

12

/external/dropbear/libtomcrypt/src/pk/katja/
Dkatja_make_key.c75 …if ((err = mp_invmod( key->N, key->d, key->d)) != CRYPT_OK) { goto error2; } /* key->d = 1… in katja_make_key()
81 …if ((err = mp_invmod( q, p, key->qP)) != CRYPT_OK) { goto error2; } /* qP = 1/q m… in katja_make_key()
/external/dropbear/libtomcrypt/src/pk/rsa/
Drsa_make_key.c81 …if ((err = mp_invmod( key->e, tmp1, key->d)) != CRYPT_OK) { goto errkey; } /* key->d = 1… in rsa_make_key()
90 …if ((err = mp_invmod( q, p, key->qP)) != CRYPT_OK) { goto errkey; } /* qP = 1/q m… in rsa_make_key()
/external/dropbear/libtommath/
Dbn_mp_invmod.c19 int mp_invmod (mp_int * a, mp_int * b, mp_int * c) in mp_invmod() function
Dbn_mp_exptmod.c43 if ((err = mp_invmod(G, P, &tmpG)) != MP_OKAY) { in mp_exptmod()
Dchanges.txt201 v0.22 -- Fixed up mp_invmod so the result is properly in range now [was always congruent to the in…
208 -- Fixed a bug in both mp_invmod() and fast_mp_invmod() which tested for odd
304 to other functions like mp_invmod, mp_div, etc...
348 v0.06 -- Sped up the s_mp_add, s_mp_sub which inturn sped up mp_invmod, mp_exptmod, etc...
353 -- Fixed a bug in mp_invmod w.r.t. even moduli
Dtommath.h369 int mp_invmod(mp_int *a, mp_int *b, mp_int *c);
/external/dropbear/libtomcrypt/src/pk/ecc/
Dltc_ecc_map.c50 if ((err = mp_invmod(P->z, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
Decc_sign_hash.c85 … if ((err = mp_invmod(pubkey.k, p, pubkey.k)) != CRYPT_OK) { goto error; } /* k = 1/k */ in ecc_sign_hash()
Decc_verify_hash.c106 …if ((err = mp_invmod(s, p, w)) != CRYPT_OK) … in ecc_verify_hash()
/external/dropbear/
Dgenrsa.c85 if (mp_invmod(key->e, &lcm, key->d) != MP_OKAY) { in gen_rsa_priv_key()
Ddss.c203 if (mp_invmod(&val1, key->q, &val2) != MP_OKAY) { in buf_dss_verify()
375 if (mp_invmod(&dss_k, key->q, &dss_temp1) != MP_OKAY) { in buf_put_dss_sign()
Drsa.c307 if (mp_invmod(&rsa_tmp2, key->n, &rsa_tmp3) != MP_OKAY) { in buf_put_rsa_sign()
Dkeyimport.c800 if (mp_invmod(key->rsakey->q, key->rsakey->p, &iqmp) != MP_OKAY) { in openssh_write()
/external/dropbear/libtomcrypt/src/pk/dsa/
Ddsa_verify_hash.c58 …if ((err = mp_invmod(s, key->q, w)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
Ddsa_sign_hash.c84 …if ((err = mp_invmod(k, key->q, kinv)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
/external/dropbear/libtommath/demo/
Dtiming.c298 DO(mp_invmod(&b, &a, &c)); in main()
Ddemo.c658 mp_invmod(&a, &b, &d); in main()
/external/dropbear/libtommath/mtest/
Dmtest.c257 mp_invmod(&a, &b, &c); in main()
Dmpi.h175 mp_err mp_invmod(mp_int *a, mp_int *m, mp_int *c);
Dmpi.c2183 mp_err mp_invmod(mp_int *a, mp_int *m, mp_int *c) in mp_invmod() function
/external/dropbear/libtomcrypt/src/headers/
Dtomcrypt_math.h486 #define mp_invmod(a, b, c) ltc_mp.invmod(a, b, c) macro
/external/wpa_supplicant/
Dlibtommath.c132 static int mp_invmod(mp_int * a, mp_int * b, mp_int * c);
557 if ((err = mp_invmod(G, P, &tmpG)) != MP_OKAY) { in mp_exptmod()
672 static int mp_invmod (mp_int * a, mp_int * b, mp_int * c) in mp_invmod() function
692 #error mp_invmod would always fail in mp_invmod()
/external/dropbear/libtomcrypt/src/math/
Dltm_desc.c334 return mpi_to_ltc_error(mp_invmod(a, b, c)); in invmod()
/external/dropbear/libtomcrypt/src/math/fp/
Dltc_ecc_fp_mulmod.c737 …if ((err = mp_invmod(fp_cache[idx].LUT[x]->z, modulus, fp_cache[idx].LUT[x]->z)) != CRYPT_OK) … in build_lut()
/external/dropbear/libtommath/pre_gen/
Dmpi.c2544 if ((err = mp_invmod(G, P, &tmpG)) != MP_OKAY) { in mp_exptmod()
3665 int mp_invmod (mp_int * a, mp_int * b, mp_int * c) in mp_invmod() function

12