/optee_os/core/lib/libtomcrypt/src/pk/dh/ |
A D | dh_shared_secret.c | 41 … if (mp_cmp(private_key->prime, public_key->prime) != LTC_MP_EQ) { return CRYPT_PK_TYPE_MISMATCH; } in dh_shared_secret() 42 … if (mp_cmp(private_key->base, public_key->base) != LTC_MP_EQ) { return CRYPT_PK_TYPE_MISMATCH; } in dh_shared_secret()
|
/optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_verify_key.c | 86 if (mp_cmp_d(tmp1, 1) != LTC_MP_EQ) { in dsa_int_validate_pqg() 171 if (mp_cmp(tmp, key->y) != LTC_MP_EQ) { in dsa_int_validate_xy() 183 if (mp_cmp_d(tmp, 1) != LTC_MP_EQ) { in dsa_int_validate_xy()
|
A D | dsa_verify_hash.c | 76 if (mp_cmp(r, v) == LTC_MP_EQ) { in dsa_verify_hash_raw()
|
A D | dsa_sign_hash.c | 75 } while (mp_cmp_d(tmp, 1) != LTC_MP_EQ); in dsa_sign_hash_raw()
|
A D | dsa_generate_pqg.c | 193 } while (mp_cmp_d(g, 1) == LTC_MP_EQ); in _dsa_make_params()
|
/optee_os/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/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_projective_add_point.c | 59 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() 60 if (mp_cmp(P->y, Q->y) == LTC_MP_EQ) { in ltc_ecc_projective_add_point() 66 if (mp_cmp(P->y, t1) == LTC_MP_EQ) { in ltc_ecc_projective_add_point()
|
A D | ltc_ecc_is_point_at_infinity.c | 48 if ((mp_cmp(x3, y2) == LTC_MP_EQ) && !mp_iszero(y2)) { in ltc_ecc_is_point_at_infinity()
|
A D | ltc_ecc_mulmod.c | 60 if (mp_cmp(a_plus3, modulus) != LTC_MP_EQ) { in ltc_ecc_mulmod() 82 if (mp_cmp_d(mu, 1) == LTC_MP_EQ) { in ltc_ecc_mulmod()
|
A D | ltc_ecc_verify_key.c | 32 if (ltc_mp.compare_d(key->pubkey.z, 1) == LTC_MP_EQ) { in ltc_ecc_verify_key()
|
A D | ecc_verify_hash.c | 171 if (mp_cmp(a_plus3, m) != LTC_MP_EQ) { in ecc_verify_hash_ex() 196 if (mp_cmp(v, r) == LTC_MP_EQ) { in ecc_verify_hash_ex()
|
A D | ltc_ecc_is_point.c | 58 if (mp_cmp(t1, b) != LTC_MP_EQ) { in ltc_ecc_is_point()
|
A D | ecc_recover_key.c | 222 if (mp_cmp(a_plus3, m) != LTC_MP_EQ) { in ecc_recover_key() 239 if (mp_cmp(v, r) == LTC_MP_EQ) { in ecc_recover_key()
|
A D | ltc_ecc_mulmod_timing.c | 59 if (mp_cmp(a_plus3, modulus) != LTC_MP_EQ) { in ltc_ecc_mulmod()
|
A D | ecc_set_curve_internal.c | 18 if (mp_cmp(tmp_bn, right_bn) != LTC_MP_EQ) return 0; in _ecc_cmp_hex_bn()
|
A D | ecc_import_pkcs8.c | 169 if (mp_cmp_d(p->child->data, 1) != LTC_MP_EQ) { in ecc_import_pkcs8()
|
/optee_os/core/lib/libtomcrypt/src/pk/rsa/ |
A D | rsa_import.c | 78 if (mp_cmp_d(key->N, 0) == LTC_MP_EQ) { in rsa_import() 99 } else if (mp_cmp_d(key->N, 1) == LTC_MP_EQ) { in rsa_import()
|
A D | rsa_exptmod.c | 141 …if (mp_cmp(tmpa, tmpb) != LTC_MP_EQ) { err = CRYPT_ERROR; goto… in rsa_exptmod()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_math.h | 14 #define LTC_MP_EQ 0 macro
|
/optee_os/core/lib/libtomcrypt/src/misc/crypt/ |
A D | crypt_constants.c | 163 _C_STRINGIFY(LTC_MP_EQ),
|
/optee_os/core/lib/libtomcrypt/src/math/ |
A D | ltm_desc.c | 135 case MP_EQ: return LTC_MP_EQ; in compare() 148 case MP_EQ: return LTC_MP_EQ; in compare_d()
|
A D | gmp_desc.c | 99 return LTC_MP_EQ; in compare() 113 return LTC_MP_EQ; in compare_d()
|
A D | tfm_desc.c | 125 case FP_EQ: return LTC_MP_EQ; in compare() 138 case FP_EQ: return LTC_MP_EQ; in compare_d()
|
/optee_os/core/lib/libtomcrypt/src/math/fp/ |
A D | ltc_ecc_fp_mulmod.c | 617 mp_cmp(fp_cache[x].g->x, g->x) == LTC_MP_EQ && in _find_base() 618 mp_cmp(fp_cache[x].g->y, g->y) == LTC_MP_EQ && in _find_base() 619 mp_cmp(fp_cache[x].g->z, g->z) == LTC_MP_EQ) { in _find_base()
|