mirror of
git://git.gnupg.org/gnupg.git
synced 2025-01-08 12:44:23 +01:00
gpg: Add hack to --quick-gen-key to create Curve25519 keys.
* g10/keygen.c (quick_generate_keypair): Add special algo string "test-default". -- Well, this is a hack to quickly create keys with the algorithms we will eventually use as defaults. Usage: gpg -v --quick-gen-key --passphrase '' --batch USERID test-default Signed-off-by: Werner Koch <wk@gnupg.org>
This commit is contained in:
parent
1ddf5b846f
commit
20ca075d96
@ -3610,7 +3610,13 @@ quick_generate_keypair (ctrl_t ctrl, const char *uid, const char *algostr,
|
||||
}
|
||||
}
|
||||
|
||||
if (*algostr || *usagestr || *expirestr)
|
||||
|
||||
if (!strcmp (algostr, "test-default"))
|
||||
{
|
||||
para = quickgen_set_para (para, 0, PUBKEY_ALGO_EDDSA, 0, "Ed25519", 0);
|
||||
para = quickgen_set_para (para, 1, PUBKEY_ALGO_ECDH, 0, "Curve25519", 0);
|
||||
}
|
||||
else if (*algostr || *usagestr || *expirestr)
|
||||
{
|
||||
/* Extended unattended mode. Creates only the primary key. */
|
||||
int algo;
|
||||
|
Loading…
x
Reference in New Issue
Block a user