From: Niels Möller Date: Mon, 30 Sep 2002 20:41:04 +0000 (+0200) Subject: (rsa_keypair_from_sexp): Bugfix: Call X-Git-Tag: nettle_1.6_release_20021003~40 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bca76aabc009230919da0a4fb5b1c2b9f5c90c5c;p=thirdparty%2Fnettle.git (rsa_keypair_from_sexp): Bugfix: Call rsa_prepare_public_key and rsa_prepare_private_key. Rev: src/nettle/sexp2rsa.c:1.2 --- diff --git a/sexp2rsa.c b/sexp2rsa.c index 1027765a..940296c2 100644 --- a/sexp2rsa.c +++ b/sexp2rsa.c @@ -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;