From 9d4bedac059f8a6d962e463a760ab7410c5a66d9 Mon Sep 17 00:00:00 2001 From: Arthur Gautier Date: Thu, 24 Oct 2019 09:14:36 +0000 Subject: [PATCH] ctap, nitpick: endianness is not needed to read one byte Signed-off-by: Arthur Gautier --- fido2/ctap1.py | 2 +- fido2/ctap2.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fido2/ctap1.py b/fido2/ctap1.py index 0d98c64..7f6adea 100644 --- a/fido2/ctap1.py +++ b/fido2/ctap1.py @@ -158,7 +158,7 @@ class SignatureData(bytes): super(SignatureData, self).__init__() reader = ByteBuffer(self) - self.user_presence = reader.unpack(">B") + self.user_presence = reader.unpack("B") self.counter = reader.unpack(">I") self.signature = reader.read() diff --git a/fido2/ctap2.py b/fido2/ctap2.py index e5ff46f..97b98e1 100644 --- a/fido2/ctap2.py +++ b/fido2/ctap2.py @@ -253,7 +253,7 @@ class AuthenticatorData(bytes): reader = ByteBuffer(self) self.rp_id_hash = reader.read(32) - self.flags = reader.unpack(">B") + self.flags = reader.unpack("B") self.counter = reader.unpack(">I") rest = reader.read()