Commit 577e1b4f authored by Niels Möller's avatar Niels Möller

* examples/rsa-keygen.c (main): Bug fix, private key wasn't

written properly.

Rev: src/nettle/examples/rsa-keygen.c:1.5
parent 5ab0726d
......@@ -130,7 +130,7 @@ main(int argc, char **argv)
return EXIT_FAILURE;
}
if (!rsa_keypair_to_sexp(&pub_buffer, &pub, &priv))
if (!rsa_keypair_to_sexp(&priv_buffer, &pub, &priv))
{
werror("Formatting private key failed.\n");
return EXIT_FAILURE;
......
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