Commit bca76aab authored by Niels Möller's avatar Niels Möller
Browse files

(rsa_keypair_from_sexp): Bugfix: Call

rsa_prepare_public_key and rsa_prepare_private_key.

Rev: src/nettle/sexp2rsa.c:1.2
parent b4f863a4
......@@ -102,12 +102,18 @@ rsa_keypair_from_sexp(struct rsa_public_key *pub,
GET(priv->a, &values[5]);
GET(priv->b, &values[6]);
GET(priv->c, &values[7]);
if (!rsa_prepare_private_key(priv))
return 0;
if (pub)
GET(pub->n, &values[0]);
GET(pub->e, &values[1]);
if (!rsa_prepare_public_key(pub))
return 0;
return 1;
Supports Markdown
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