Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
...@@ -102,12 +102,18 @@ rsa_keypair_from_sexp(struct rsa_public_key *pub, ...@@ -102,12 +102,18 @@ rsa_keypair_from_sexp(struct rsa_public_key *pub,
GET(priv->a, &values[5]); GET(priv->a, &values[5]);
GET(priv->b, &values[6]); GET(priv->b, &values[6]);
GET(priv->c, &values[7]); GET(priv->c, &values[7]);
if (!rsa_prepare_private_key(priv))
return 0;
} }
if (pub) if (pub)
{ {
GET(pub->n, &values[0]); GET(pub->n, &values[0]);
GET(pub->e, &values[1]); GET(pub->e, &values[1]);
if (!rsa_prepare_public_key(pub))
return 0;
} }
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment