Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Decc_verify_hash.c28 ecc_point *mG = NULL, *mQ = NULL; in ecc_verify_hash_ex() local
57 mG = ltc_ecc_new_point(); in ecc_verify_hash_ex()
59 if (mQ == NULL || mG == NULL) { in ecc_verify_hash_ex()
158 …if ((err = ltc_ecc_copy_point(&key->dp.base, mG)) != CRYPT_OK) … in ecc_verify_hash_ex()
173 …if ((err = ltc_mp.ecc_ptmul(u1, mG, mG, a, m, 0)) != CRYPT_OK) … in ecc_verify_hash_ex()
177 …if ((err = ltc_mp.ecc_ptadd(mQ, mG, mG, ma, m, mp)) != CRYPT_OK) … in ecc_verify_hash_ex()
180 …if ((err = ltc_mp.ecc_map(mG, m, mp)) != CRYPT_OK) … in ecc_verify_hash_ex()
183 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_verify_hash_ex()
187 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_verify_hash_ex()
197 if (mG != NULL) ltc_ecc_del_point(mG); in ecc_verify_hash_ex()
A Decc_recover_key.c30 ecc_point *mG = NULL, *mQ = NULL, *mR = NULL; in ecc_recover_key() local
62 mG = ltc_ecc_new_point(); in ecc_recover_key()
65 if (mR == NULL || mQ == NULL || mG == NULL) { in ecc_recover_key()
210 …if ((err = ltc_ecc_copy_point(&key->dp.base, mG)) != CRYPT_OK) … in ecc_recover_key()
224 …if ((err = ltc_mp.ecc_mul2add(mR, v1, mG, v2, mQ, ma, m)) != CRYPT_OK) … in ecc_recover_key()
227 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_recover_key()
230 …if ((err = mp_mod(mG->x, p, v)) != CRYPT_OK) … in ecc_recover_key()
254 if (mG != NULL) ltc_ecc_del_point(mG); in ecc_recover_key()

Completed in 4 milliseconds