fix(deps): update rust crate bytes to v1 (#783)

* fix(deps): update rust crate bytes to v1

* adapt api

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: FabianLars <fabianlars@fabianlars.de>
This commit is contained in:
renovate[bot]
2023-11-30 12:04:44 +01:00
committed by GitHub
parent 3df9bc73f8
commit c98545b3ae
3 changed files with 20 additions and 39 deletions
@@ -39,7 +39,7 @@ pub fn parse_sign_response(
let mut msg = vec![];
msg.put(app_id_hash.as_ref());
msg.put(*user_presence_flag);
msg.put_u8(*user_presence_flag);
msg.put(counter);
msg.put(client_data_hash.as_ref());
@@ -61,5 +61,5 @@ pub fn parse_sign_response(
fn get_counter(counter: &[u8]) -> u32 {
let mut buf = Cursor::new(counter);
buf.get_u32_be()
buf.get_u32()
}