Home
last modified time | relevance | path

Searched refs:curve (Results 1 – 4 of 4) sorted by relevance

/crypto/
Decrdsa.c37 const struct ecc_curve *curve; /* curve from oid */ member
91 if (!ctx->curve || in ecrdsa_verify()
96 req->dst_len != ctx->curve->g.ndigits * sizeof(u64) || in ecrdsa_verify()
97 ctx->pub_key.ndigits != ctx->curve->g.ndigits || in ecrdsa_verify()
115 vli_cmp(r, ctx->curve->n, ndigits) >= 0 || in ecrdsa_verify()
117 vli_cmp(s, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
123 if (vli_cmp(e, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
124 vli_sub(e, e, ctx->curve->n, ndigits); in ecrdsa_verify()
129 vli_mod_inv(v, e, ctx->curve->n, ndigits); in ecrdsa_verify()
132 vli_mod_mult_slow(z1, s, v, ctx->curve->n, ndigits); in ecrdsa_verify()
[all …]
Decc.c1144 u64 *initial_z, const struct ecc_curve *curve, in ecc_point_mult() argument
1152 u64 *curve_prime = curve->p; in ecc_point_mult()
1157 carry = vli_add(sk[0], scalar, curve->n, ndigits); in ecc_point_mult()
1158 vli_add(sk[1], sk[0], curve->n, ndigits); in ecc_point_mult()
1208 const struct ecc_curve *curve) in ecc_point_add() argument
1213 unsigned int ndigits = curve->g.ndigits; in ecc_point_add()
1217 vli_mod_sub(z, result->x, p->x, curve->p, ndigits); in ecc_point_add()
1220 xycz_add(px, py, result->x, result->y, curve->p, ndigits); in ecc_point_add()
1221 vli_mod_inv(z, z, curve->p, ndigits); in ecc_point_add()
1222 apply_z(result->x, result->y, z, curve->p, ndigits); in ecc_point_add()
[all …]
Decc.h147 int ecc_is_pubkey_valid_partial(const struct ecc_curve *curve,
244 const struct ecc_curve *curve);
Decrdsa_params.asn12 curve OBJECT IDENTIFIER ({ ecrdsa_param_curve }),