Home
last modified time | relevance | path

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

/linux-6.12.1/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()
Decc.c242 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits) in vli_cmp() function
255 EXPORT_SYMBOL(vli_cmp);
525 if (carry || vli_cmp(result, mod, ndigits) >= 0) in vli_mod_add()
569 while (vli_cmp(r, t, ndigits * 2) >= 0) in vli_mmod_special()
626 while (vli_cmp(r, m, ndigits * 2) >= 0) in vli_mmod_special2()
700 vli_cmp(r, mod, ndigits) != -1) { in vli_mmod_barrett()
733 while (carry || vli_cmp(curve_prime, result, ndigits) != 1) in vli_mmod_fast_192()
811 while (carry || vli_cmp(curve_prime, result, ndigits) != 1) in vli_mmod_fast_256()
919 while (carry || vli_cmp(curve_prime, result, ndigits) != 1) in vli_mmod_fast_384()
1058 while ((cmp_result = vli_cmp(a, b, ndigits)) != 0) { in vli_mod_inv()
[all …]
Decdsa.c98 if (vli_is_zero(r, ndigits) || vli_cmp(r, curve->n, ndigits) >= 0 || in _ecdsa_verify()
99 vli_is_zero(s, ndigits) || vli_cmp(s, curve->n, ndigits) >= 0) in _ecdsa_verify()
116 if (unlikely(vli_cmp(res.x, curve->n, ndigits) == 1)) in _ecdsa_verify()
120 if (!vli_cmp(res.x, r, ndigits)) in _ecdsa_verify()
/linux-6.12.1/drivers/crypto/intel/keembay/
Dkeembay-ocs-ecc.c366 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
369 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
411 rc = vli_cmp(yy, w, pk->ndigits); in kmb_ocs_ecc_is_pubkey_valid_partial()
468 if (vli_cmp(one, private_key, ndigits) != -1) in kmb_ecc_is_key_valid()
473 if (vli_cmp(res, private_key, ndigits) != 1) in kmb_ecc_is_key_valid()
/linux-6.12.1/include/crypto/internal/
Decc.h183 int vli_cmp(const u64 *left, const u64 *right, unsigned int ndigits);