diff --git a/src/authenticator.rs b/src/authenticator.rs index 3df8e0781d..8397d6f3b4 100644 --- a/src/authenticator.rs +++ b/src/authenticator.rs @@ -501,11 +501,11 @@ where postcard_serialize_bytes(&credential).unwrap(), None )); - + let counter_long: u64 = counter.into(); crate::calculate::calculate( &mut self.trussed, credential.algorithm, - &counter.to_be_bytes(), + &counter_long.to_be_bytes(), credential.secret, ) } else {