| 6 |
details. |
details. |
| 7 |
|
|
| 8 |
OpenPGP data |
OpenPGP data |
| 9 |
$Id: pgpdata.c,v 1.13 2002/08/29 08:50:00 weaselp Exp $ */ |
$Id: pgpdata.c,v 1.14 2002/09/04 06:40:31 disastry Exp $ */ |
| 10 |
|
|
| 11 |
|
|
| 12 |
#include "mix3.h" |
#include "mix3.h" |
| 836 |
sig = buf_new(); |
sig = buf_new(); |
| 837 |
|
|
| 838 |
errlog(NOTICE, "Generating OpenPGP RSA key.\n"); |
errlog(NOTICE, "Generating OpenPGP RSA key.\n"); |
| 839 |
k = RSA_generate_key(bits == 0 ? 1024 : bits, 3, NULL, NULL); |
k = RSA_generate_key(bits == 0 ? 1024 : bits, 17, NULL, NULL); |
| 840 |
if (k == NULL) { |
if (k == NULL) { |
| 841 |
err = -1; |
err = -1; |
| 842 |
goto end; |
goto end; |