Commit b464ec8a authored by Davide Galassi's avatar Davide Galassi

ECDSA typo fix

parent 60387323
Pipeline #131843415 passed with stages
in 7 minutes and 26 seconds
......@@ -123,7 +123,7 @@ int cry_ecdsa_keygen(cry_ecdsa_ctx *ctx)
{
int res;
if ((res = cry_mpi_rand_range(&ctx->d, &ctx->grp.p)) == 0)
if ((res = cry_mpi_rand_range(&ctx->d, &ctx->grp.n)) == 0)
res = cry_ecp_mul(&ctx->q, &ctx->grp.g, &ctx->d, &ctx->grp);
return res;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment