@@ -4,22 +4,22 @@ use crate::{
44 trace:: * ,
55} ;
66use ecdsa:: {
7- elliptic_curve:: { sec1 :: ToEncodedPoint , PublicKey as EcPublicKey , SecretKey as EcSecretKey } ,
7+ elliptic_curve:: { PublicKey as EcPublicKey , SecretKey as EcSecretKey , sec1 :: ToEncodedPoint } ,
88 signature:: { DigestSigner , DigestVerifier } ,
99} ;
1010use ed25519_compact:: { PublicKey as Ed25519PublicKey , SecretKey as Ed25519SecretKey } ;
1111use p256:: NistP256 ;
1212use p384:: NistP384 ;
13- use pkcs8:: { der :: Decode , Document , PrivateKeyInfo } ;
13+ use pkcs8:: { Document , PrivateKeyInfo , der :: Decode } ;
1414use sha2:: { Digest , Sha256 , Sha384 } ;
1515use spki:: SubjectPublicKeyInfoRef ;
1616
1717#[ cfg( feature = "rsa-signature" ) ]
1818use rsa:: {
19+ RsaPrivateKey , RsaPublicKey ,
1920 pkcs1:: { DecodeRsaPrivateKey , DecodeRsaPublicKey , EncodeRsaPublicKey } ,
2021 pkcs1v15, pss,
2122 signature:: { Keypair , RandomizedSigner , SignatureEncoding , Verifier } ,
22- RsaPrivateKey , RsaPublicKey ,
2323} ;
2424
2525#[ allow( non_upper_case_globals, dead_code) ]
@@ -406,7 +406,7 @@ impl super::VerifyingKey for PublicKey {
406406 /// - For Ed25519 keys, use the raw 32-byte public key.
407407 /// - For RSA keys, use the DER encoding of the RSAPublicKey structure in PKCS#1 format.
408408 fn key_id ( & self ) -> String {
409- use base64:: { engine :: general_purpose , Engine as _} ;
409+ use base64:: { Engine as _, engine :: general_purpose } ;
410410
411411 let bytes = match self {
412412 Self :: EcdsaP256Sha256 ( vk) => vk. to_encoded_point ( true ) . as_bytes ( ) . to_vec ( ) ,
0 commit comments