Expand description
Data Authentication Algorithm (DAA) implemetnation as defined in the FIPS 113.
WARNING! The algorithm is not considered secure by today’s standards. DO NOT USE it if you don’t have to be compatible with legacy software!
§Examples
use daa::{Daa, Mac, NewMac};
// test from FIPS 113
let key = [0x01, 0x23, 0x45, 0x67, 0x89, 0xAB, 0xCD, 0xEF];
let mut mac = Daa::new_from_slice(&key).unwrap();
mac.update(b"7654321 Now is the time for ");
let correct = [0xF1, 0xD3, 0x0F, 0x68, 0x49, 0x31, 0x2C, 0xA4];
mac.verify(&correct).unwrap();
Re-exports§
pub use crypto_mac;
Structs§
- Daa
- DAA instance
Traits§
- From
Block Cipher - Trait for MAC functions which can be created from block cipher.
- Mac
- The
Mac
trait defines methods for a Message Authentication algorithm. - NewMac
- Instantiate a
Mac
algorithm.