diff options
author | Justus Winter <justus@sequoia-pgp.org> | 2020-02-12 10:36:42 +0100 |
---|---|---|
committer | Justus Winter <justus@sequoia-pgp.org> | 2020-02-12 15:12:21 +0100 |
commit | 682cb11bb409cd4f6be3ab3a416e8f1251409a86 (patch) | |
tree | 578876ce1d1d83328633a9611118dde3c3811392 | |
parent | d35d271e69b95e40b6943705dfbe4c6713358f06 (diff) |
openpgp: Update to nettle 6.
-rw-r--r-- | Cargo.lock | 6 | ||||
-rw-r--r-- | openpgp/Cargo.toml | 2 | ||||
-rw-r--r-- | openpgp/src/crypto/asymmetric.rs | 3 |
3 files changed, 6 insertions, 5 deletions
@@ -1013,7 +1013,7 @@ dependencies = [ [[package]] name = "nettle" -version = "5.0.3" +version = "6.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" dependencies = [ "failure 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)", @@ -1663,7 +1663,7 @@ dependencies = [ "lalrpop-util 0.17.2 (registry+https://github.com/rust-lang/crates.io-index)", "lazy_static 1.4.0 (registry+https://github.com/rust-lang/crates.io-index)", "memsec 0.5.7 (registry+https://github.com/rust-lang/crates.io-index)", - "nettle 5.0.3 (registry+https://github.com/rust-lang/crates.io-index)", + "nettle 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)", "quickcheck 0.9.2 (registry+https://github.com/rust-lang/crates.io-index)", "rand 0.7.3 (registry+https://github.com/rust-lang/crates.io-index)", "regex 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)", @@ -2357,7 +2357,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum miow 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "8c1f2f3b1cf331de6896aabf6e9d55dca90356cc9960cca7eaaf408a355ae919" "checksum native-tls 0.2.3 (registry+https://github.com/rust-lang/crates.io-index)" = "4b2df1a4c22fd44a62147fd8f13dd0f95c9d8ca7b2610299b2a2f9cf8964274e" "checksum net2 0.2.33 (registry+https://github.com/rust-lang/crates.io-index)" = "42550d9fb7b6684a6d404d9fa7250c2eb2646df731d1c06afc06dcee9e1bcf88" -"checksum nettle 5.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "c40aad15a496df1ae843b5ca10cef328e64d04854404464f464fd5e11aa6d77d" +"checksum nettle 6.0.0 (registry+https://github.com/rust-lang/crates.io-index)" = "26d1a7a80eda11428ff0d34d853ddff7104f76a4a75af2e966cc3d9cfee31a0f" "checksum nettle-src 3.5.1-2 (registry+https://github.com/rust-lang/crates.io-index)" = "fad3c0d4be23880e92170c10f009f1d4b0dd842a523dd8b35c89738fd3b640c8" "checksum nettle-sys 2.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "b8629333ff5f3b74d251dae253e383cda9242410fac4244a4fe855469be101fb" "checksum new_debug_unreachable 1.0.4 (registry+https://github.com/rust-lang/crates.io-index)" = "e4a24736216ec316047a1fc4252e27dabb04218aa4a3f37c6e7ddbf1f9782b54" diff --git a/openpgp/Cargo.toml b/openpgp/Cargo.toml index a770e696..ae5641bd 100644 --- a/openpgp/Cargo.toml +++ b/openpgp/Cargo.toml @@ -31,7 +31,7 @@ idna = "0.2" lalrpop-util = "0.17" lazy_static = "1.3" memsec = "0.5.6" -nettle = "5.0.2" +nettle = "6" quickcheck = { version = "0.9", default-features = false } rand = { version = "0.7", default-features = false } regex = "1" diff --git a/openpgp/src/crypto/asymmetric.rs b/openpgp/src/crypto/asymmetric.rs index 32787db6..f73c83ec 100644 --- a/openpgp/src/crypto/asymmetric.rs +++ b/openpgp/src/crypto/asymmetric.rs @@ -238,7 +238,8 @@ impl Decryptor for KeyPair { let secret = rsa::PrivateKey::new(d.value(), p.value(), q.value(), Option::None)?; let mut rand = Yarrow::default(); - rsa::decrypt_pkcs1(&public, &secret, &mut rand, c.value())? + rsa::decrypt_pkcs1_insecure(&public, &secret, &mut rand, + c.value())? .into() } |