diff options
author | Neal H. Walfield <neal@pep.foundation> | 2020-02-14 08:32:32 +0100 |
---|---|---|
committer | Neal H. Walfield <neal@pep.foundation> | 2020-02-14 12:40:46 +0100 |
commit | 19580f8d0901782ada2260d28d7bee572733f8c7 (patch) | |
tree | 3e283f5791ba3085a6dc17d62287d0bed9bf6f0f /tool | |
parent | 8f2078cebf982fdd3aa028f4629ab200709ebcb8 (diff) |
openpgp: Add an option to change the cipher suite used for subkeys.
- Add a parameter to CipherSuite::add_subkey, which, if not None,
overrides the default cipher suite for that subkey.
- This makes it easier to create a key with, say, an ECC primary and
an RSA subkey.
Diffstat (limited to 'tool')
-rw-r--r-- | tool/src/commands/key.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/src/commands/key.rs b/tool/src/commands/key.rs index bf12c04a..afca59f1 100644 --- a/tool/src/commands/key.rs +++ b/tool/src/commands/key.rs @@ -88,6 +88,7 @@ pub fn generate(m: &ArgMatches, force: bool) -> failure::Fallible<()> { builder = builder.add_subkey(KeyFlags::default() .set_transport_encryption(true) .set_storage_encryption(true), + None, None); } (Some("storage"), false) => { |