- setbuf(stdout, NULL);
- for(i = 0; i < bytes; i++)
- {
- c = fgetc(fp);
- if(feof(fp))
- {
- puts("");
- fprintf(stderr, _("File was empty!\n"));
- }
- p[i] = c;
- }
- fclose(fp);
-
- if(isatty(1))
- {
- fprintf(stderr, _(": done.\nThe following line should be ENTIRELY copied into a passphrase file:\n"));
- printf("%d ", bits);
- for(i = 0; i < bytes; i++)
- printf("%02x", p[i]);
- puts("");
- }
- else
- {
- printf("%d ", bits);
- for(i = 0; i < bytes; i++)
- printf("%02x", p[i]);
- puts("");
- fprintf(stderr, _(": done.\n"));
- }
+ printf(_("Public key: %s\n"), BN_bn2hex(key->n));
+ printf(_("Private key: %s\n"), BN_bn2hex(key->d));