fn calc_digest( decoded_secret: impl AsRef<[u8]>, counter: u64, algorithm: Algorithm, ) -> Tag
Calculates the HMAC digest for the given secret and counter.