Home
last modified time | relevance | path

Searched refs:LTC_MP_EQ (Results 1 – 25 of 25) sorted by relevance

/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/
A Ddh_shared_secret.c34 … if (mp_cmp(private_key->prime, public_key->prime) != LTC_MP_EQ) { return CRYPT_PK_TYPE_MISMATCH; } in dh_shared_secret()
35 … if (mp_cmp(private_key->base, public_key->base) != LTC_MP_EQ) { return CRYPT_PK_TYPE_MISMATCH; } in dh_shared_secret()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_verify_key.c79 if (mp_cmp_d(tmp1, 1) != LTC_MP_EQ) { in dsa_int_validate_pqg()
164 if (mp_cmp(tmp, key->y) != LTC_MP_EQ) { in dsa_int_validate_xy()
176 if (mp_cmp_d(tmp, 1) != LTC_MP_EQ) { in dsa_int_validate_xy()
A Ddsa_verify_hash.c69 if (mp_cmp(r, v) == LTC_MP_EQ) { in dsa_verify_hash_raw()
A Ddsa_sign_hash.c68 } while (mp_cmp_d(tmp, 1) != LTC_MP_EQ); in dsa_sign_hash_raw()
A Ddsa_generate_pqg.c186 } while (mp_cmp_d(g, 1) == LTC_MP_EQ); in s_dsa_make_params()
/optee_os-3.20.0/core/lib/libtomcrypt/
A Dsm2-dsa.c91 if (mp_cmp_d(r, 0) == LTC_MP_EQ || in sm2_ltc_dsa_sign()
92 mp_cmp(tmp, ltc_key.dp.order) == LTC_MP_EQ) in sm2_ltc_dsa_sign()
199 if (mp_cmp_d(t, 0) == LTC_MP_EQ) { in sm2_ltc_dsa_verify()
241 if (mp_cmp(R, rprime) != LTC_MP_EQ) in sm2_ltc_dsa_verify()
A Dmpi_desc.c163 return LTC_MP_EQ; in compare()
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/
A Dltc_ecc_projective_add_point.c52 if ((mp_cmp(P->x, Q->x) == LTC_MP_EQ) && (mp_cmp(P->z, Q->z) == LTC_MP_EQ)) { in ltc_ecc_projective_add_point()
53 if (mp_cmp(P->y, Q->y) == LTC_MP_EQ) { in ltc_ecc_projective_add_point()
59 if (mp_cmp(P->y, t1) == LTC_MP_EQ) { in ltc_ecc_projective_add_point()
A Dltc_ecc_is_point_at_infinity.c41 if ((mp_cmp(x3, y2) == LTC_MP_EQ) && !mp_iszero(y2)) { in ltc_ecc_is_point_at_infinity()
A Dltc_ecc_verify_key.c25 if (ltc_mp.compare_d(key->pubkey.z, 1) == LTC_MP_EQ) { in ltc_ecc_verify_key()
A Dltc_ecc_is_point.c51 if (mp_cmp(t1, b) != LTC_MP_EQ) { in ltc_ecc_is_point()
A Dltc_ecc_mulmod.c53 if (mp_cmp(a_plus3, modulus) != LTC_MP_EQ) { in ltc_ecc_mulmod()
75 if (mp_cmp_d(mu, 1) == LTC_MP_EQ) { in ltc_ecc_mulmod()
A Decc_verify_hash.c165 if (mp_cmp(a_plus3, m) != LTC_MP_EQ) { in ecc_verify_hash_ex()
190 if (mp_cmp(v, r) == LTC_MP_EQ) { in ecc_verify_hash_ex()
A Decc_recover_key.c216 if (mp_cmp(a_plus3, m) != LTC_MP_EQ) { in ecc_recover_key()
233 if (mp_cmp(v, r) == LTC_MP_EQ) { in ecc_recover_key()
A Dltc_ecc_mulmod_timing.c52 if (mp_cmp(a_plus3, modulus) != LTC_MP_EQ) { in ltc_ecc_mulmod()
A Decc_import_pkcs8.c162 if (mp_cmp_d(p->child->data, 1) != LTC_MP_EQ) { in ecc_import_pkcs8()
A Decc_set_curve_internal.c11 if (mp_cmp(tmp_bn, right_bn) != LTC_MP_EQ) return 0; in s_ecc_cmp_hex_bn()
/optee_os-3.20.0/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_math.h7 #define LTC_MP_EQ 0 macro
A Dtomcrypt_private.h224 #define mp_iszero(a) (mp_cmp_d(a, 0) == LTC_MP_EQ ? LTC_MP_YES : LTC_MP_NO)
/optee_os-3.20.0/core/lib/libtomcrypt/src/misc/crypt/
A Dcrypt_constants.c157 C_STRINGIFY(LTC_MP_EQ),
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_exptmod.c134 …if (mp_cmp(tmpa, tmpb) != LTC_MP_EQ) { err = CRYPT_ERROR; goto… in rsa_exptmod()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/
A Dltm_desc.c145 case MP_EQ: return LTC_MP_EQ; in compare()
156 case MP_EQ: return LTC_MP_EQ; in compare_d()
A Dgmp_desc.c92 return LTC_MP_EQ; in compare()
106 return LTC_MP_EQ; in compare_d()
A Dtfm_desc.c118 case FP_EQ: return LTC_MP_EQ; in compare()
131 case FP_EQ: return LTC_MP_EQ; in compare_d()
/optee_os-3.20.0/core/lib/libtomcrypt/src/math/fp/
A Dltc_ecc_fp_mulmod.c610 mp_cmp(fp_cache[x].g->x, g->x) == LTC_MP_EQ && in s_find_base()
611 mp_cmp(fp_cache[x].g->y, g->y) == LTC_MP_EQ && in s_find_base()
612 mp_cmp(fp_cache[x].g->z, g->z) == LTC_MP_EQ) { in s_find_base()

Completed in 24 milliseconds