Skip to content

Commit 5c339f7

Browse files
committed
Fix some imports
1 parent e6c1bc9 commit 5c339f7

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ aws-lc-rs = { version = "1.15.0", optional = true }
3737

3838
# "rust_crypto" feature
3939
ed25519-dalek = { version = "2.1.1", optional = true, features = ["pkcs8"] }
40-
hmac = { version = "0.12.1", optional = true }
40+
hmac = { version = "0.12.1", optional = true, features = ["reset"] }
4141
p256 = { version = "0.13.2", optional = true, features = ["ecdsa"] }
4242
p384 = { version = "0.13.0", optional = true, features = ["ecdsa"] }
4343
rand = { version = "0.8.5", optional = true, features = [

src/crypto/rust_crypto/ecdsa.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ use crate::{Algorithm, DecodingKey, EncodingKey};
88
use p256::ecdsa::{
99
Signature as Signature256, SigningKey as SigningKey256, VerifyingKey as VerifyingKey256,
1010
};
11+
use p256::pkcs8::DecodePrivateKey;
1112
use p384::ecdsa::{
1213
Signature as Signature384, SigningKey as SigningKey384, VerifyingKey as VerifyingKey384,
1314
};
14-
use rsa::pkcs8::DecodePrivateKey;
1515
use signature::{Error, Signer, Verifier};
1616

1717
macro_rules! define_ecdsa_signer {

src/crypto/rust_crypto/rsa.rs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
//! Implementations of the [`JwtSigner`] and [`JwtVerifier`] traits for the
22
//! RSA family of algorithms using RustCrypto.
33
4-
use hmac::digest::FixedOutputReset;
54
use rsa::{
65
BigUint, Pkcs1v15Sign, Pss, RsaPublicKey,
76
pkcs1::{DecodeRsaPrivateKey, DecodeRsaPublicKey},
@@ -10,7 +9,10 @@ use rsa::{
109
pss::BlindedSigningKey,
1110
traits::SignatureScheme,
1211
};
13-
use sha2::{Digest, Sha256, Sha384, Sha512};
12+
use sha2::{
13+
Sha256, Sha384, Sha512,
14+
digest::{Digest, FixedOutputReset},
15+
};
1416
use signature::{RandomizedSigner, SignatureEncoding, Signer, Verifier};
1517

1618
use crate::algorithms::AlgorithmFamily;

0 commit comments

Comments
 (0)