Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_map.c45 if ((err = mp_mod(t2, modulus, t2)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
47 if ((err = mp_mod(t1, modulus, t1)) != CRYPT_OK) { goto done; } in ltc_ecc_map()
A Dltc_ecc_is_point.c31 if ((err = mp_mod(t2, prime, t2)) != CRYPT_OK) goto cleanup; in ltc_ecc_is_point()
A Dltc_ecc_import_point.c44 … if ((err = mp_mod(t2, prime, y)) != CRYPT_OK) { goto cleanup; } in ltc_ecc_import_point()
A Decc_recover_key.c187 …if ((err = mp_mod(t2, m, mR->y)) != CRYPT_OK) … in ecc_recover_key()
230 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_recover_key()
A Decc_sign_hash.c79 if ((err = mp_mod(pubkey.pubkey.x, p, r)) != CRYPT_OK) { goto error; } in ecc_sign_hash_ex()
A Decc_verify_hash.c187 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_verify_hash_ex()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_generate_pqg.c128 if ((err = mp_mod(U, t2N1, U)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
141 if ((err = mp_mod(seedinc, t2seedlen, seedinc)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
151 if ((err = mp_mod(W, t2L1, W)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
153 if ((err = mp_mod(X, t2q, c)) != CRYPT_OK) { goto cleanup; } in s_dsa_make_params()
A Ddsa_verify_hash.c66 …if ((err = mp_mod(v, key->q, v)) != CRYPT_OK) { goto erro… in dsa_verify_hash_raw()
A Ddsa_sign_hash.c75 …if ((err = mp_mod(r, key->q, r)) != CRYPT_OK) { goto error; } in dsa_sign_hash_raw()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_make_key.c63 …if ((err = mp_mod( key->d, tmp1, key->dP)) != CRYPT_OK) { goto errkey; } /* dP = d mod… in s_rsa_make_key()
64 …if ((err = mp_mod( key->d, tmp2, key->dQ)) != CRYPT_OK) { goto errkey; } /* dQ = d mod… in s_rsa_make_key()
/optee_os-3.20.0/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-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c804 if ((err = mp_mod(k, order, tk)) != CRYPT_OK) { in s_accel_fp_mul()
929 if ((err = mp_mod(kA, order, tka)) != CRYPT_OK) { in ss_accel_fp_mul2add()
967 if ((err = mp_mod(kB, order, tkb)) != CRYPT_OK) { in ss_accel_fp_mul2add()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h205 #define mp_mod(a, b, c) ltc_mp.mpdiv(a, b, NULL, c) macro

Completed in 12 milliseconds