Skip to content

Commit

Permalink
fixup! correct type
Browse files Browse the repository at this point in the history
  • Loading branch information
szszszsz committed Aug 12, 2023
1 parent 81330b0 commit 94421b3
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pynitrokey/nk3/secrets_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,15 +604,14 @@ def register(
@classmethod
def encode_properties_to_send(
cls, touch_button_required: bool, pin_based_encryption: bool
) -> bytes:
r = RawBytes(
) -> RawBytes:
return RawBytes(
[
Tag.Properties.value,
(0x02 if touch_button_required else 0x00)
| (0x04 if pin_based_encryption else 0x00),
]
)
return r

def calculate(self, cred_id: bytes, challenge: Optional[int] = None) -> bytes:
"""
Expand Down

0 comments on commit 94421b3

Please sign in to comment.