Home
last modified time | relevance | path

Searched refs:mG (Results 1 – 2 of 2) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_verify_hash.c35 ecc_point *mG = NULL, *mQ = NULL; in ecc_verify_hash_ex() local
64 mG = ltc_ecc_new_point(); in ecc_verify_hash_ex()
66 if (mQ == NULL || mG == NULL) { in ecc_verify_hash_ex()
164 …if ((err = ltc_ecc_copy_point(&key->dp.base, mG)) != CRYPT_OK) … in ecc_verify_hash_ex()
179 …if ((err = ltc_mp.ecc_ptmul(u1, mG, mG, a, m, 0)) != CRYPT_OK) … in ecc_verify_hash_ex()
183 …if ((err = ltc_mp.ecc_ptadd(mQ, mG, mG, ma, m, mp)) != CRYPT_OK) … in ecc_verify_hash_ex()
186 …if ((err = ltc_mp.ecc_map(mG, m, mp)) != CRYPT_OK) … in ecc_verify_hash_ex()
189 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_verify_hash_ex()
193 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_verify_hash_ex()
203 if (mG != NULL) ltc_ecc_del_point(mG); in ecc_verify_hash_ex()
A Decc_recover_key.c37 ecc_point *mG = NULL, *mQ = NULL, *mR = NULL; in ecc_recover_key() local
69 mG = ltc_ecc_new_point(); in ecc_recover_key()
72 if (mR == NULL || mQ == NULL || mG == NULL) { in ecc_recover_key()
216 …if ((err = ltc_ecc_copy_point(&key->dp.base, mG)) != CRYPT_OK) … in ecc_recover_key()
230 …if ((err = ltc_mp.ecc_mul2add(mR, v1, mG, v2, mQ, ma, m)) != CRYPT_OK) … in ecc_recover_key()
233 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_recover_key()
236 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_recover_key()
260 if (mG != NULL) ltc_ecc_del_point(mG); in ecc_recover_key()

Completed in 3 milliseconds