1
mirror of https://github.com/Yubico/python-fido2 synced 2024-07-09 12:57:54 +02:00

ctap, nitpick: endianness is not needed to read one byte

Signed-off-by: Arthur Gautier <baloo@gandi.net>
This commit is contained in:
Arthur Gautier 2019-10-24 09:14:36 +00:00
parent a14d7e8ed1
commit 9d4bedac05
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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()