From c914a073797ceb328de68be1e400517f92bcf033 Mon Sep 17 00:00:00 2001 From: Paolo Barbolini Date: Sat, 12 Nov 2022 18:45:19 +0100 Subject: [PATCH] Update dependencies (#829) --- Cargo.toml | 8 ++++---- src/message/dkim.rs | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 6a8d881..1ec2f77 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -65,8 +65,8 @@ tokio1_rustls = { package = "tokio-rustls", version = "0.23", optional = true } tokio1_boring = { package = "tokio-boring", version = "2.1.4", optional = true } ## dkim -sha2 = { version = "0.10", optional = true } -rsa = { version = "0.6.0", optional = true } +sha2 = { version = "0.10", optional = true, features = ["oid"] } +rsa = { version = "0.7", optional = true } ed25519-dalek = { version = "1.0.1", optional = true } # email formats @@ -74,7 +74,7 @@ email_address = { version = "0.2.1", default-features = false } [dev-dependencies] pretty_assertions = "1" -criterion = "0.3" +criterion = "0.4" tracing = { version = "0.1.16", default-features = false, features = ["std"] } tracing-subscriber = "0.3" glob = "0.3" @@ -82,7 +82,7 @@ walkdir = "2" tokio1_crate = { package = "tokio", version = "1", features = ["macros", "rt-multi-thread"] } async-std = { version = "1.8", features = ["attributes"] } serde_json = "1" -maud = "0.23" +maud = "0.24" [[bench]] harness = false diff --git a/src/message/dkim.rs b/src/message/dkim.rs index 7e47865..0ef2d04 100644 --- a/src/message/dkim.rs +++ b/src/message/dkim.rs @@ -7,7 +7,7 @@ use std::{ }; use ed25519_dalek::Signer; -use rsa::{pkcs1::DecodeRsaPrivateKey, Hash, PaddingScheme, RsaPrivateKey}; +use rsa::{pkcs1::DecodeRsaPrivateKey, PaddingScheme, RsaPrivateKey}; use sha2::{Digest, Sha256}; use crate::message::{ @@ -393,7 +393,7 @@ fn dkim_sign_fixed_time(message: &mut Message, dkim_config: &DkimConfig, timesta InnerDkimSigningKey::Rsa(private_key) => base64::encode( private_key .sign( - PaddingScheme::new_pkcs1v15_sign(Some(Hash::SHA2_256)), + PaddingScheme::new_pkcs1v15_sign::(), &hashed_headers, ) .unwrap(),