]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
(main): Comment on the lax security of the
authorNiels Möller <nisse@lysator.liu.se>
Wed, 2 Oct 2002 18:44:17 +0000 (20:44 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Wed, 2 Oct 2002 18:44:17 +0000 (20:44 +0200)
private key file.

Rev: src/nettle/examples/rsa-keygen.c:1.6

examples/rsa-keygen.c

index af33b2311e5a022b65d69184860e54fcde438b78..fc4176c3b272ad3ed97f39b3ddcfa382015da228 100644 (file)
@@ -143,6 +143,8 @@ main(int argc, char **argv)
       return EXIT_FAILURE;
     }
 
+  /* NOTE: This doesn't set up paranoid access restrictions on the
+   * private key file, like a serious key generation tool would do. */
   if (!write_file(priv_name, priv_buffer.size, priv_buffer.contents))
     {
       werror("Failed to write private key: %s\n",