ran rustfmt

This commit is contained in:
Kai Jan Kriegel 2022-05-05 13:45:42 +02:00
parent a4a15b17f7
commit 6fc20bdc0c
4 changed files with 491 additions and 218 deletions

View File

@ -42,8 +42,9 @@ mod tests {
let data_enc = crate::crypto::cipher::aes::AES::encrypt(&data, &key, &iv).unwrap();
let data_enc_expected = hex!("3c79d74a4969ba7123e5d8f6df24493112d221fd131a4617d0eda5d92ccc1b46");
let data_enc_expected =
hex!("3c79d74a4969ba7123e5d8f6df24493112d221fd131a4617d0eda5d92ccc1b46");
assert_eq!(data_enc, data_enc_expected);
}
}
}

File diff suppressed because it is too large Load Diff

View File

@ -167,4 +167,4 @@ pub enum FileTypes {
mod apduinstructions;
mod apdustatuscodes;
pub mod desfire;
pub use desfire::Desfire;
pub use desfire::Desfire;

View File

@ -3,7 +3,7 @@
//! **WARNING** This is alpha quality software at best and should not be relied upon. **WARNING**
//!
//!The `desfire` Crate provides the cryptographic methods and specific commands for interfacing
//! with NXP MiFare Desfire cards.
//! with NXP MiFare Desfire cards.
//!
use crate::iso7816_4::apducommand::APDUCommand;
@ -33,4 +33,3 @@ pub trait Card {
/// <returns>Application Protocol Data Unit Response - ISO 7816</returns>
fn transmit(&self, apdu_cmd: APDUCommand) -> Result<APDUResponse>;
}