diff options
author | Leonhard Markert <curiousleo@users.noreply.github.com> | 2019-11-13 21:20:24 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2019-11-15 12:54:45 +0100 |
commit | 7735b05e8cf82ae943e8b7b0dfed4a26cd6c3db4 (patch) | |
tree | a81bc7ea466fb7168aa6f766751f43daaf363f6f /openpgp-ffi | |
parent | c08eff5da06ae6df459d1e45133c2113557927fe (diff) |
openpgp: Add tpk::builder::CipherSuite::RSA4k.
Diffstat (limited to 'openpgp-ffi')
-rw-r--r-- | openpgp-ffi/include/sequoia/openpgp/types.h | 5 | ||||
-rw-r--r-- | openpgp-ffi/src/tpk.rs | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/openpgp-ffi/include/sequoia/openpgp/types.h b/openpgp-ffi/include/sequoia/openpgp/types.h index 8dbd890b..f16c5923 100644 --- a/openpgp-ffi/include/sequoia/openpgp/types.h +++ b/openpgp-ffi/include/sequoia/openpgp/types.h @@ -439,6 +439,11 @@ typedef enum pgp_tpk_cipher_suite { /*/ PGP_TPK_CIPHER_SUITE_RSA2K, + /*/ + /// 4096 bit RSA with SHA512 and AES256. + /*/ + PGP_TPK_CIPHER_SUITE_RSA4K, + /* Dummy value to make sure the enumeration has a defined size. Do not use this value. */ PGP_TPK_CIPHER_SUITE_FORCE_WIDTH = INT_MAX, diff --git a/openpgp-ffi/src/tpk.rs b/openpgp-ffi/src/tpk.rs index bfac7597..ecc0ee0b 100644 --- a/openpgp-ffi/src/tpk.rs +++ b/openpgp-ffi/src/tpk.rs @@ -889,6 +889,7 @@ fn int_to_cipher_suite(cs: c_int) -> CipherSuite { 3 => P384, 4 => P521, 5 => RSA2k, + 6 => RSA4k, n => panic!("Bad ciphersuite: {}", n), } } |