Home
last modified time | relevance | path

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

/crypto/
A Decc.c1220 apply_z(x1, y1, z, curve); in xycz_initial_double()
1224 apply_z(x2, y2, z, curve); in xycz_initial_double()
1232 const struct ecc_curve *curve) in xycz_add() argument
1339 u64 *curve_prime = curve->p; in ecc_point_mult()
1348 num_bits = curve->nbits + 2; in ecc_point_mult()
1460 apply_z(tx, ty, z, curve); in ecc_point_mult_shamir()
1467 apply_z(rx, ry, z, curve); in ecc_point_mult_shamir()
1584 ecc_point_mult(pk, &curve->g, private_key, NULL, curve, ndigits); in ecc_make_pub_key()
1625 vli_mod_mult_fast(w, curve->a, pk->x, curve); /* a·x */ in ecc_is_pubkey_valid_partial()
1626 vli_mod_add(w, w, curve->b, curve->p, pk->ndigits); /* a·x + b */ in ecc_is_pubkey_valid_partial()
[all …]
A Decrdsa.c90 if (!ctx->curve || in ecrdsa_verify()
108 vli_cmp(r, ctx->curve->n, ndigits) >= 0 || in ecrdsa_verify()
110 vli_cmp(s, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
116 if (vli_cmp(e, ctx->curve->n, ndigits) >= 0) in ecrdsa_verify()
117 vli_sub(e, e, ctx->curve->n, ndigits); in ecrdsa_verify()
122 vli_mod_inv(v, e, ctx->curve->n, ndigits); in ecrdsa_verify()
126 vli_sub(_r, ctx->curve->n, r, ndigits); in ecrdsa_verify()
131 ctx->curve); in ecrdsa_verify()
133 vli_sub(cc.x, cc.x, ctx->curve->n, ndigits); in ecrdsa_verify()
150 ctx->curve = get_curve_by_oid(ctx->curve_oid); in ecrdsa_param_curve()
[all …]
A Decdsa.c15 const struct ecc_curve *curve; member
25 const struct ecc_curve *curve = ctx->curve; in _ecdsa_verify() local
26 unsigned int ndigits = curve->g.ndigits; in _ecdsa_verify()
44 vli_mod_inv(s1, s, curve->n, ndigits); in _ecdsa_verify()
50 ecc_point_mult_shamir(&res, u1, &curve->g, u2, &ctx->pub_key, curve); in _ecdsa_verify()
55 vli_sub(res.x, res.x, curve->n, ndigits); in _ecdsa_verify()
92 ctx->curve = ecc_get_curve(curve_id); in ecdsa_ecc_ctx_init()
93 if (!ctx->curve) in ecdsa_ecc_ctx_init()
114 ctx->curve->g.ndigits); in ecdsa_ecc_ctx_reset()
144 if (ndigits != ctx->curve->g.ndigits) in ecdsa_set_pub_key()
[all …]
A Decrdsa_params.asn12 curve OBJECT IDENTIFIER ({ ecrdsa_param_curve }),
A DKconfig353 Curve25519 elliptic curve (RFC7748)

Completed in 16 milliseconds