Displaying 1 result from an estimated 1 matches for "rsa_clear_public_key".
1999 Dec 16
3
Progress meter for ssh-keygen
....o+O?";
+
+ if ((p < 0) || (p > (sizeof(progress_chars) - 2)))
+ p = 4;
+
+ printf("%c", progress_chars[p]);
+ fflush(stdout);
+}
+
+/*
* Generates RSA public and private keys. This initializes the data
* structures; they should be freed with rsa_clear_private_key and
* rsa_clear_public_key.
@@ -69,8 +84,11 @@
if (rsa_verbose) {
printf("Generating RSA keys: ");
fflush(stdout);
+ key = RSA_generate_key(bits, 35, keygen_progress, NULL);
+ printf("\n");
+ } else {
+ key = RSA_generate_key(bits, 35, NULL, NULL);
}
- key = RSA_generate_key(bits, 35, NULL,...