summaryrefslogtreecommitdiffstats
path: root/openpgp
diff options
context:
space:
mode:
authorNora Widdecke <nora@sequoia-pgp.org>2021-11-25 19:25:38 +0100
committerNora Widdecke <nora@sequoia-pgp.org>2021-11-29 11:53:56 +0100
commit72c8024ec969b27c72110e2b20a576eb4f1de9fc (patch)
tree61a9780108fcc6297213ecc6271bc1d1a5605ee5 /openpgp
parent16f7b6f92eb918a9ad258ca012959f338ac7e5d2 (diff)
Allow many single character names.
- The RSA parameters have single character names, this is fine. - Clippy lint: clippy::many_single_char_names.
Diffstat (limited to 'openpgp')
-rw-r--r--openpgp/src/crypto/backend/rust/asymmetric.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/openpgp/src/crypto/backend/rust/asymmetric.rs b/openpgp/src/crypto/backend/rust/asymmetric.rs
index b0557279..4af499bf 100644
--- a/openpgp/src/crypto/backend/rust/asymmetric.rs
+++ b/openpgp/src/crypto/backend/rust/asymmetric.rs
@@ -46,6 +46,7 @@ fn rsa_public_key(e: &MPI, n: &MPI) -> Result<RSAPublicKey> {
Ok(RSAPublicKey::new(n, e)?)
}
+#[allow(clippy::many_single_char_names)]
fn rsa_private_key(e: &MPI, n: &MPI, p: &ProtectedMPI, q: &ProtectedMPI, d: &ProtectedMPI)
-> RSAPrivateKey
{
@@ -413,6 +414,7 @@ impl<R> Key4<SecretParts, R>
/// The RSA key will use public exponent `e` and modulo `n`. The key will
/// have it's creation date set to `ctime` or the current time if `None`
/// is given.
+ #[allow(clippy::many_single_char_names)]
pub fn import_secret_rsa<T>(d: &[u8], p: &[u8], q: &[u8], ctime: T)
-> Result<Self> where T: Into<Option<SystemTime>>
{