authenticator::models::otp

Function calc_digest

Source
fn calc_digest(
    decoded_secret: impl AsRef<[u8]>,
    counter: u64,
    algorithm: Algorithm,
) -> Tag
Expand description

Calculates the HMAC digest for the given secret and counter.