/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/dh/ |
A D | dh_shared_secret.c | 34 … 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 D | dsa_verify_key.c | 79 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 D | dsa_verify_hash.c | 69 if (mp_cmp(r, v) == LTC_MP_EQ) { in dsa_verify_hash_raw()
|
A D | dsa_sign_hash.c | 68 } while (mp_cmp_d(tmp, 1) != LTC_MP_EQ); in dsa_sign_hash_raw()
|
A D | dsa_generate_pqg.c | 186 } while (mp_cmp_d(g, 1) == LTC_MP_EQ); in s_dsa_make_params()
|
/optee_os-3.20.0/core/lib/libtomcrypt/ |
A D | sm2-dsa.c | 91 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 D | mpi_desc.c | 163 return LTC_MP_EQ; in compare()
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_projective_add_point.c | 52 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 D | ltc_ecc_is_point_at_infinity.c | 41 if ((mp_cmp(x3, y2) == LTC_MP_EQ) && !mp_iszero(y2)) { in ltc_ecc_is_point_at_infinity()
|
A D | ltc_ecc_verify_key.c | 25 if (ltc_mp.compare_d(key->pubkey.z, 1) == LTC_MP_EQ) { in ltc_ecc_verify_key()
|
A D | ltc_ecc_is_point.c | 51 if (mp_cmp(t1, b) != LTC_MP_EQ) { in ltc_ecc_is_point()
|
A D | ltc_ecc_mulmod.c | 53 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 D | ecc_verify_hash.c | 165 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 D | ecc_recover_key.c | 216 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 D | ltc_ecc_mulmod_timing.c | 52 if (mp_cmp(a_plus3, modulus) != LTC_MP_EQ) { in ltc_ecc_mulmod()
|
A D | ecc_import_pkcs8.c | 162 if (mp_cmp_d(p->child->data, 1) != LTC_MP_EQ) { in ecc_import_pkcs8()
|
A D | ecc_set_curve_internal.c | 11 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 D | tomcrypt_math.h | 7 #define LTC_MP_EQ 0 macro
|
A D | tomcrypt_private.h | 224 #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 D | crypt_constants.c | 157 C_STRINGIFY(LTC_MP_EQ),
|
/optee_os-3.20.0/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_exptmod.c | 134 …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 D | ltm_desc.c | 145 case MP_EQ: return LTC_MP_EQ; in compare() 156 case MP_EQ: return LTC_MP_EQ; in compare_d()
|
A D | gmp_desc.c | 92 return LTC_MP_EQ; in compare() 106 return LTC_MP_EQ; in compare_d()
|
A D | tfm_desc.c | 118 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 D | ltc_ecc_fp_mulmod.c | 610 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()
|