/optee_os/core/lib/libtomcrypt/src/pk/dsa/ |
A D | dsa_verify_key.c | 68 if (mp_cmp_d(key->g, 1) != LTC_MP_GT || mp_cmp(key->g, key->p) != LTC_MP_LT) { in dsa_int_validate_pqg() 86 if (mp_cmp_d(tmp1, 1) != LTC_MP_EQ) { in dsa_int_validate_pqg() 156 if (mp_cmp_d(key->y, 1) != LTC_MP_GT || mp_cmp(key->y, tmp) != LTC_MP_LT) { in dsa_int_validate_xy() 163 if (mp_cmp_d(key->x, 0) != LTC_MP_GT || mp_cmp(key->x, key->q) != LTC_MP_LT) { 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 | 51 …if (mp_cmp_d(r, 0) != LTC_MP_GT || mp_cmp_d(s, 0) != LTC_MP_GT || mp_cmp(r, key->q) != LTC_MP_LT |… in dsa_verify_hash_raw()
|
A D | dsa_sign_hash.c | 71 … if (mp_cmp_d(k, 0) != LTC_MP_GT || mp_cmp(k, key->q) != LTC_MP_LT) { goto retry; } in dsa_sign_hash_raw() 75 } while (mp_cmp_d(tmp, 1) != LTC_MP_EQ); in dsa_sign_hash_raw()
|
A D | dsa_generate_pqg.c | 189 } while (mp_cmp(h, p) != LTC_MP_LT || mp_cmp_d(h, 2) != LTC_MP_GT); in _dsa_make_params() 193 } while (mp_cmp_d(g, 1) == LTC_MP_EQ); in _dsa_make_params()
|
/optee_os/core/lib/libtomcrypt/src/pk/ecc/ |
A D | ltc_ecc_projective_add_point.c | 108 if (mp_cmp_d(y, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point() 123 if (mp_cmp_d(x, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point() 166 if (mp_cmp_d(x, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point() 172 if (mp_cmp_d(t2, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point() 177 if (mp_cmp_d(t2, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point() 185 if (mp_cmp_d(y, 0) == LTC_MP_LT) { in ltc_ecc_projective_add_point()
|
A D | ltc_ecc_projective_dbl_point.c | 87 if (mp_cmp_d(t2, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point() 161 if (mp_cmp_d(R->x, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point() 166 if (mp_cmp_d(R->x, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point() 172 if (mp_cmp_d(R->y, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point() 180 if (mp_cmp_d(R->y, 0) == LTC_MP_LT) { in ltc_ecc_projective_dbl_point()
|
A D | ecc_verify_hash.c | 129 if (mp_cmp_d(r, 0) != LTC_MP_GT || mp_cmp_d(s, 0) != LTC_MP_GT || in ecc_verify_hash_ex()
|
A D | ltc_ecc_is_point.c | 50 while (mp_cmp_d(t1, 0) == LTC_MP_LT) { in ltc_ecc_is_point()
|
A D | ecc_recover_key.c | 149 if (mp_cmp_d(r, 0) != LTC_MP_GT || mp_cmp_d(s, 0) != LTC_MP_GT || in ecc_recover_key()
|
A D | ecc_import_pkcs8.c | 169 if (mp_cmp_d(p->child->data, 1) != LTC_MP_EQ) { in ecc_import_pkcs8()
|
A D | ecc_sign_hash.c | 92 while (mp_cmp_d(s, 0) == LTC_MP_GT && mp_cmp(s, p) != LTC_MP_LT) { in ecc_sign_hash_ex()
|
A D | ltc_ecc_mulmod.c | 82 if (mp_cmp_d(mu, 1) == LTC_MP_EQ) { in ltc_ecc_mulmod()
|
/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() 173 if (mp_cmp_d(rprime, 1) == LTC_MP_LT || in sm2_ltc_dsa_verify() 181 if (mp_cmp_d(sprime, 1) == LTC_MP_LT || in sm2_ltc_dsa_verify() 199 if (mp_cmp_d(t, 0) == LTC_MP_EQ) { in sm2_ltc_dsa_verify()
|
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/integer/ |
A D | der_encode_integer.c | 47 if (mp_cmp_d(num, 0) != LTC_MP_LT) { in der_encode_integer() 79 if (mp_cmp_d(num, 0) == LTC_MP_GT) { in der_encode_integer()
|
A D | der_length_integer.c | 33 if (mp_cmp_d(num, 0) != LTC_MP_LT) { in der_length_integer()
|
/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_make_key.c | 43 …} while (mp_cmp_d( tmp2, 1) != 0); /* while e div… in s_rsa_make_key() 50 …} while (mp_cmp_d( tmp2, 1) != 0); /* while e divi… in s_rsa_make_key()
|
/optee_os/core/lib/libtomcrypt/src/pk/dh/ |
A D | dh_check_pubkey.c | 36 if (mp_cmp(key->y, p_minus1) != LTC_MP_LT || mp_cmp_d(key->y, 1) != LTC_MP_GT) { in dh_check_pubkey()
|
/optee_os/core/lib/libtomcrypt/src/math/ |
A D | rand_bn.c | 68 } while (mp_cmp_d(N, 0) != LTC_MP_GT || mp_cmp(N, limit) != LTC_MP_LT); in rand_bn_upto()
|
A D | ltm_desc.c | 145 ret = mp_cmp_d(a, b); in compare_d()
|
/optee_os/core/lib/libtomcrypt/src/headers/ |
A D | tomcrypt_private.h | 171 #define mp_cmp_d(a, b) ltc_mp.compare_d(a, b) macro 211 #define mp_iszero(a) (mp_cmp_d(a, 0) == LTC_MP_EQ ? LTC_MP_YES : LTC_MP_NO)
|