Searched refs:mQ (Results 1 – 2 of 2) sorted by relevance
/optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ecc_verify_hash.c | 35 ecc_point *mG = NULL, *mQ = NULL; in ecc_verify_hash_ex() local 65 mQ = ltc_ecc_new_point(); in ecc_verify_hash_ex() 66 if (mQ == NULL || mG == NULL) { in ecc_verify_hash_ex() 165 …if ((err = ltc_ecc_copy_point(&key->pubkey, mQ)) != CRYPT_OK) … in ecc_verify_hash_ex() 180 …if ((err = ltc_mp.ecc_ptmul(u2, mQ, mQ, 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() 189 …if ((err = ltc_mp.ecc_mul2add(mG, u1, mQ, u2, mG, ma, m)) != CRYPT_OK) … in ecc_verify_hash_ex() 204 if (mQ != NULL) ltc_ecc_del_point(mQ); in ecc_verify_hash_ex()
|
A D | ecc_recover_key.c | 37 ecc_point *mG = NULL, *mQ = NULL, *mR = NULL; in ecc_recover_key() local 70 mQ = ltc_ecc_new_point(); in ecc_recover_key() 72 if (mR == NULL || mQ == NULL || mG == NULL) { 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() 241 …if ((err = ltc_ecc_copy_point(mQ, &key->pubkey)) != CRYPT_OK) … in ecc_recover_key() 259 if (mQ != NULL) ltc_ecc_del_point(mQ); in ecc_recover_key()
|
Completed in 3 milliseconds