Home
last modified time | relevance | path

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

/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_generate_pqg.c135 if ((err = mp_mod(U, t2N1, U)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params()
148 if ((err = mp_mod(seedinc, t2seedlen, seedinc)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params()
158 if ((err = mp_mod(W, t2L1, W)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params()
160 if ((err = mp_mod(X, t2q, c)) != CRYPT_OK) { goto cleanup; } in _dsa_make_params()
A Ddsa_verify_hash.c73 …if ((err = mp_mod(v, key->q, v)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
A Ddsa_sign_hash.c82 …if ((err = mp_mod(r, key->q, r)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_map.c52 if ((err = mp_mod(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
54 if ((err = mp_mod(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
A Dltc_ecc_is_point.c38 if ((err = mp_mod(t2, prime, t2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
A Dltc_ecc_import_point.c51 … if ((err = mp_mod(t2, prime, y)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
A Decc_recover_key.c193 …if ((err = mp_mod(t2, m, mR->y)) != CRYPT_OK) … in ecc_recover_key()
236 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_recover_key()
A Decc_sign_hash.c86 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex()
A Decc_verify_hash.c193 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_verify_hash_ex()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_make_key.c70 …if ((err = mp_mod( key->d, tmp1, key->dP)) != CRYPT_OK) { goto errkey; } /* dP = d mod… in s_rsa_make_key()
71 …if ((err = mp_mod( key->d, tmp2, key->dQ)) != CRYPT_OK) { goto errkey; } /* dQ = d mod… in s_rsa_make_key()
/optee_os/core/lib/libtomcrypt/src/pk/dh/
A Ddh_make_key.c122 err = mp_mod(key->y, arg_mod, key->x); in dh_make_key()
/optee_os/core/lib/libtomcrypt/src/math/fp/
A 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()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h192 #define mp_mod(a, b, c) ltc_mp.mpdiv(a, b, NULL, c) macro

Completed in 13 milliseconds