Skip to content
Snippets Groups Projects
Commit 577e1b4f authored by Niels Möller's avatar Niels Möller
Browse files

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

written properly.

Rev: src/nettle/examples/rsa-keygen.c:1.5
parent 5ab0726d
No related branches found
No related tags found
No related merge requests found
...@@ -130,7 +130,7 @@ main(int argc, char **argv) ...@@ -130,7 +130,7 @@ main(int argc, char **argv)
return EXIT_FAILURE; 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"); werror("Formatting private key failed.\n");
return EXIT_FAILURE; return EXIT_FAILURE;
......
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