[][src]Function iso8583_rs::crypto::pin::verify_pin

pub fn verify_pin(
    fmt: &PinFormat,
    expected_pin: &str,
    pin_block: &Vec<u8>,
    pan: &str,
    key: &Vec<u8>
) -> Result<bool, PinError>

Verifies the pin in the 'pin_block' against expected_pin and returns a boolean to indicate if there was was a successful match