mirror of
https://gitlab.com/fabinfra/fabaccess/nfc_rs.git
synced 2025-03-12 06:41:46 +01:00
ran rustfmt
This commit is contained in:
parent
a4a15b17f7
commit
6fc20bdc0c
@ -42,8 +42,9 @@ mod tests {
|
|||||||
|
|
||||||
let data_enc = crate::crypto::cipher::aes::AES::encrypt(&data, &key, &iv).unwrap();
|
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);
|
assert_eq!(data_enc, data_enc_expected);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
File diff suppressed because it is too large
Load Diff
@ -167,4 +167,4 @@ pub enum FileTypes {
|
|||||||
mod apduinstructions;
|
mod apduinstructions;
|
||||||
mod apdustatuscodes;
|
mod apdustatuscodes;
|
||||||
pub mod desfire;
|
pub mod desfire;
|
||||||
pub use desfire::Desfire;
|
pub use desfire::Desfire;
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
//! **WARNING** This is alpha quality software at best and should not be relied upon. **WARNING**
|
//! **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
|
//!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;
|
use crate::iso7816_4::apducommand::APDUCommand;
|
||||||
@ -33,4 +33,3 @@ pub trait Card {
|
|||||||
/// <returns>Application Protocol Data Unit Response - ISO 7816</returns>
|
/// <returns>Application Protocol Data Unit Response - ISO 7816</returns>
|
||||||
fn transmit(&self, apdu_cmd: APDUCommand) -> Result<APDUResponse>;
|
fn transmit(&self, apdu_cmd: APDUCommand) -> Result<APDUResponse>;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user