Skip to content

Commit

Permalink
lint x2
Browse files Browse the repository at this point in the history
  • Loading branch information
Eugeny committed Dec 29, 2024
1 parent fe5e56a commit 64d5dd4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ssh-key/src/ppk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use hmac::digest::KeyInit;
use hmac::{Hmac, Mac};
use sha2::Sha256;

use crate::private::{EcdsaKeypair, KeypairData};
use crate::private::KeypairData;
use crate::public::KeyData;
use crate::{Algorithm, Error, Mpint, PublicKey};
use encoding::base64::{self, Base64, Encoding};
Expand Down Expand Up @@ -403,7 +403,6 @@ fn decode_private_key_as(
)?))
}

#[cfg(feature = "rsa")]
(Algorithm::Rsa { .. }, KeyData::Rsa(pk)) => {
use crate::private::{RsaKeypair, RsaPrivateKey};

Expand Down Expand Up @@ -443,6 +442,7 @@ fn decode_private_key_as(
#[cfg(any(feature = "p256", feature = "p384", feature = "p521"))]
(Algorithm::Ecdsa { curve }, KeyData::Ecdsa(public)) => {
// PPK encodes EcDSA private exponent as an mpint
use crate::private::EcdsaKeypair;
use crate::public::EcdsaPublicKey;
use crate::EcdsaCurve;

Expand Down

0 comments on commit 64d5dd4

Please sign in to comment.