Skip to content

Commit

Permalink
Fix clippy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
Fethbita committed Oct 7, 2024
1 parent b94fb1b commit b5ad3ec
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ use openssl::{
X509StoreContext, X509,
},
};
use pcsc::{Attribute::AtrString, Card};
use pcsc::Attribute::AtrString;
use rand::{rngs::OsRng, CryptoRng, RngCore};
#[cfg(feature = "passive_auth")]
use rasn::{der, types::Oid};
Expand Down Expand Up @@ -1887,7 +1887,7 @@ pub fn parse_master_list(master_list: &[u8]) -> Result<X509Store, EmrtdError> {
/// # TODOs
///
/// * Instead of returning error immediately after an error, collect all errors and return at the end
/// of the function, i.e. in case of signature verification failure, maybe the user can still get the DG hashes
/// of the function, i.e. in case of signature verification failure, maybe the user can still get the DG hashes
#[cfg(feature = "passive_auth")]
pub fn passive_authentication(
ef_sod: &[u8],
Expand Down Expand Up @@ -3356,7 +3356,7 @@ impl<C: EmrtdCard, R: RngCore + CryptoRng + Default> EmrtdComms<C, R> {
)?;

let m_ifd = compute_mac(
&ba_key_mac,
ba_key_mac,
&padding_method_2(&e_ifd, 8)?,
&MacAlgorithm::DES,
)?;
Expand Down Expand Up @@ -3386,7 +3386,7 @@ impl<C: EmrtdCard, R: RngCore + CryptoRng + Default> EmrtdComms<C, R> {
};

let m_ic = compute_mac(
&ba_key_mac,
ba_key_mac,
&padding_method_2(&resp_data_enc[..resp_data_enc.len() - 8], 8)?,
&MacAlgorithm::DES,
)?;
Expand Down

0 comments on commit b5ad3ec

Please sign in to comment.