mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-21 14:47:03 +01:00
gpg: Use 2048 as the default keysize in batch mode.
* g10/keygen.c (gen_elg, gen_dsa, gen_rsa): Set default keysize to 2048. Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
12990efb45
commit
4c3b35b067
@ -1408,7 +1408,7 @@ gen_elg (int algo, unsigned int nbits, KBNODE pub_root,
|
||||
|
||||
if (nbits < 512)
|
||||
{
|
||||
nbits = 1024;
|
||||
nbits = 2048;
|
||||
log_info (_("keysize invalid; using %u bits\n"), nbits );
|
||||
}
|
||||
|
||||
@ -1458,7 +1458,7 @@ gen_dsa (unsigned int nbits, KBNODE pub_root,
|
||||
|
||||
if ( nbits < 512)
|
||||
{
|
||||
nbits = 1024;
|
||||
nbits = 2048;
|
||||
log_info(_("keysize invalid; using %u bits\n"), nbits );
|
||||
}
|
||||
else if ( nbits > 3072 )
|
||||
@ -1592,7 +1592,7 @@ gen_rsa (int algo, unsigned int nbits, KBNODE pub_root,
|
||||
|
||||
if (nbits < 1024)
|
||||
{
|
||||
nbits = 1024;
|
||||
nbits = 2048;
|
||||
log_info (_("keysize invalid; using %u bits\n"), nbits );
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user