Home
last modified time | relevance | path

Searched refs:mp_cmp_d (Results 1 – 21 of 21) sorted by relevance

/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_verify_key.c68 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 Ddsa_verify_hash.c51 …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 Ddsa_sign_hash.c71 … 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 Ddsa_generate_pqg.c189 } 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 Dltc_ecc_projective_add_point.c108 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 Dltc_ecc_projective_dbl_point.c87 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 Decc_verify_hash.c129 if (mp_cmp_d(r, 0) != LTC_MP_GT || mp_cmp_d(s, 0) != LTC_MP_GT || in ecc_verify_hash_ex()
A Dltc_ecc_is_point.c50 while (mp_cmp_d(t1, 0) == LTC_MP_LT) { in ltc_ecc_is_point()
A Decc_recover_key.c149 if (mp_cmp_d(r, 0) != LTC_MP_GT || mp_cmp_d(s, 0) != LTC_MP_GT || in ecc_recover_key()
A Decc_import_pkcs8.c169 if (mp_cmp_d(p->child->data, 1) != LTC_MP_EQ) { in ecc_import_pkcs8()
A Decc_sign_hash.c92 while (mp_cmp_d(s, 0) == LTC_MP_GT && mp_cmp(s, p) != LTC_MP_LT) { in ecc_sign_hash_ex()
A Dltc_ecc_mulmod.c82 if (mp_cmp_d(mu, 1) == LTC_MP_EQ) { in ltc_ecc_mulmod()
/optee_os/core/lib/libtomcrypt/
A Dsm2-dsa.c91 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 Dder_encode_integer.c47 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 Dder_length_integer.c33 if (mp_cmp_d(num, 0) != LTC_MP_LT) { in der_length_integer()
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_import.c78 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 Drsa_make_key.c43 …} 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 Ddh_check_pubkey.c36 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 Drand_bn.c68 } while (mp_cmp_d(N, 0) != LTC_MP_GT || mp_cmp(N, limit) != LTC_MP_LT); in rand_bn_upto()
A Dltm_desc.c145 ret = mp_cmp_d(a, b); in compare_d()
/optee_os/core/lib/libtomcrypt/src/headers/
A Dtomcrypt_private.h171 #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)

Completed in 16 milliseconds