Home
last modified time | relevance | path

Searched refs:mQ (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
58 mQ = ltc_ecc_new_point(); in ecc_verify_hash_ex()
59 if (mQ == NULL || mG == NULL) { in ecc_verify_hash_ex()
159 …if ((err = ltc_ecc_copy_point(&key->pubkey, mQ)) != CRYPT_OK) … in ecc_verify_hash_ex()
174 …if ((err = ltc_mp.ecc_ptmul(u2, mQ, mQ, 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()
183 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_verify_hash_ex()
198 if (mQ != NULL) ltc_ecc_del_point(mQ); in ecc_verify_hash_ex()
A Decc_recover_key.c30 ecc_point *mG = NULL, *mQ = NULL, *mR = NULL; in ecc_recover_key() local
63 mQ = ltc_ecc_new_point(); in ecc_recover_key()
65 if (mR == NULL || mQ == NULL || mG == NULL) { 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()
235 …if ((err = ltc_ecc_copy_point(mQ, &key->pubkey)) != CRYPT_OK) … in ecc_recover_key()
253 if (mQ != NULL) ltc_ecc_del_point(mQ); in ecc_recover_key()

Completed in 3 milliseconds