diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2021-10-06 14:34:23 +0200 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2023-01-12 15:48:20 +0100 |
commit | e9906e642a674598785523128503cc8a1a45ff96 (patch) | |
tree | cd6b7c078f266f45ed7d17adc9293ad95294d440 | |
parent | b11d7b5427987a1c02cee34146e2a48c6ad17562 (diff) |
sq: Support CipherSuite::Cv448.justus/openpgp-next-cv448
-rw-r--r-- | sq/sq-usage.md | 2 | ||||
-rw-r--r-- | sq/src/commands/key.rs | 3 | ||||
-rw-r--r-- | sq/src/sq_cli/key.rs | 3 |
3 files changed, 6 insertions, 2 deletions
diff --git a/sq/sq-usage.md b/sq/sq-usage.md index 5d39f2ea..fefe5cdd 100644 --- a/sq/sq-usage.md +++ b/sq/sq-usage.md @@ -430,7 +430,7 @@ OPTIONS: Selects the cryptographic algorithms for the key [default: cv25519] - [possible values: rsa3k, rsa4k, cv25519] + [possible values: rsa3k, rsa4k, cv25519, cv448] --can-authenticate Adds an authentication-capable subkey (default) diff --git a/sq/src/commands/key.rs b/sq/src/commands/key.rs index d428ceb0..7710da04 100644 --- a/sq/src/commands/key.rs +++ b/sq/src/commands/key.rs @@ -98,6 +98,9 @@ fn generate( Cv25519 => { builder = builder.set_cipher_suite(CipherSuite::Cv25519); } + Cv448 => { + builder = builder.set_cipher_suite(CipherSuite::Cv448); + } } // Signing Capability diff --git a/sq/src/sq_cli/key.rs b/sq/src/sq_cli/key.rs index 526df6dd..b30aa1ef 100644 --- a/sq/src/sq_cli/key.rs +++ b/sq/src/sq_cli/key.rs @@ -203,7 +203,8 @@ $ sq key generate --creation-time 20110609T1938+0200 --export noam.pgp pub enum CipherSuite { Rsa3k, Rsa4k, - Cv25519 + Cv25519, + Cv448, } #[derive(ArgEnum, Clone, Debug)] |