Searched refs:curve (Results 1 – 5 of 5) sorted by relevance
/crypto/ |
D | ecc.c | 908 const struct ecc_curve *curve) in vli_mmod_fast() argument 911 const u64 *curve_prime = curve->p; in vli_mmod_fast() 912 const unsigned int ndigits = curve->g.ndigits; in vli_mmod_fast() 915 if (strncmp(curve->name, "nist_", 5) != 0) { in vli_mmod_fast() 964 const struct ecc_curve *curve) in vli_mod_mult_fast() argument 968 vli_mult(product, left, right, curve->g.ndigits); in vli_mod_mult_fast() 969 vli_mmod_fast(result, product, curve); in vli_mod_mult_fast() 974 const struct ecc_curve *curve) in vli_mod_square_fast() argument 978 vli_square(product, left, curve->g.ndigits); in vli_mod_square_fast() 979 vli_mmod_fast(result, product, curve); in vli_mod_square_fast() [all …]
|
D | ecdsa.c | 18 const struct ecc_curve *curve; member 27 const struct ecc_curve *curve; member 82 sig->curve->g.ndigits); in ecdsa_get_signature_r() 91 sig->curve->g.ndigits); in ecdsa_get_signature_s() 96 const struct ecc_curve *curve = ctx->curve; in _ecdsa_verify() local 97 unsigned int ndigits = curve->g.ndigits; in _ecdsa_verify() 106 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() 115 vli_mod_inv(s1, s, curve->n, ndigits); in _ecdsa_verify() 117 vli_mod_mult_slow(u1, hash, s1, curve->n, ndigits); in _ecdsa_verify() [all …]
|
D | ecrdsa.c | 38 const struct ecc_curve *curve; /* curve from oid */ member 92 if (!ctx->curve || in ecrdsa_verify() 97 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify() 98 ctx->pub_key.ndigits != ctx->curve->g.ndigits || in ecrdsa_verify() 116 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() 125 vli_sub(e, e, ctx->curve->n, ndigits); in ecrdsa_verify() 130 vli_mod_inv(v, e, ctx->curve->n, ndigits); in ecrdsa_verify() 133 vli_mod_mult_slow(z1, s, v, ctx->curve->n, ndigits); in ecrdsa_verify() [all …]
|
D | ecc.h | 133 int ecc_is_pubkey_valid_partial(const struct ecc_curve *curve, 147 int ecc_is_pubkey_valid_full(const struct ecc_curve *curve, 244 const struct ecc_curve *curve);
|
D | ecrdsa_params.asn1 | 2 curve OBJECT IDENTIFIER ({ ecrdsa_param_curve }),
|