Home
last modified time | relevance | path

Searched refs:vli_cmp (Results 1 – 5 of 5) sorted by relevance

/linux-5.19.10/crypto/
Decrdsa.c116 vli_cmp(r, ctx->curve->n, ndigits) >= 0 || in ecrdsa_verify()
118 vli_cmp(s, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
124 if (vli_cmp(e, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
140 if (vli_cmp(cc.x, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
144 if (!vli_cmp(cc.x, r, ndigits)) in ecrdsa_verify()
Decdsa.c106 if (vli_is_zero(r, ndigits) || vli_cmp(r, curve->n, ndigits) >= 0 || in _ecdsa_verify()
107 vli_is_zero(s, ndigits) || vli_cmp(s, curve->n, ndigits) >= 0) in _ecdsa_verify()
124 if (unlikely(vli_cmp(res.x, curve->n, ndigits) == 1)) in _ecdsa_verify()
128 if (!vli_cmp(res.x, r, ndigits)) in _ecdsa_verify()
Decc.c218 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits) in vli_cmp() function
231 EXPORT_SYMBOL(vli_cmp);
501 if (carry || vli_cmp(result, mod, ndigits) >= 0) in vli_mod_add()
545 while (vli_cmp(r, t, ndigits * 2) >= 0) in vli_mmod_special()
602 while (vli_cmp(r, m, ndigits * 2) >= 0) in vli_mmod_special2()
676 vli_cmp(r, mod, ndigits) != -1) { in vli_mmod_barrett()
709 while (carry || vli_cmp(curve_prime, result, ndigits) != 1) in vli_mmod_fast_192()
787 while (carry || vli_cmp(curve_prime, result, ndigits) != 1) in vli_mmod_fast_256()
895 while (carry || vli_cmp(curve_prime, result, ndigits) != 1) in vli_mmod_fast_384()
1009 while ((cmp_result = vli_cmp(a, b, ndigits)) != 0) { in vli_mod_inv()
[all …]
/linux-5.19.10/drivers/crypto/keembay/
Dkeembay-ocs-ecc.c371 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
374 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
416 rc = vli_cmp(yy, w, pk->ndigits); in kmb_ocs_ecc_is_pubkey_valid_partial()
473 if (vli_cmp(one, private_key, ndigits) != -1) in kmb_ecc_is_key_valid()
478 if (vli_cmp(res, private_key, ndigits) != 1) in kmb_ecc_is_key_valid()
/linux-5.19.10/include/crypto/internal/
Decc.h168 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits);