Skip to content

Commit

Permalink
HSMAUTH: add and change type annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
elibon99 committed Aug 9, 2023
1 parent 0b6bea9 commit 58ce91e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions yubikit/hsmauth.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class SessionKeys(NamedTuple):
key_srmac: bytes

@classmethod
def parse(cls, response) -> "SessionKeys":
def parse(cls, response: bytes) -> "SessionKeys":
key_senc = response[:16]
key_smac = response[16:32]
key_srmac = response[32:48]
Expand Down Expand Up @@ -318,7 +318,7 @@ def put_credential_derived(
management_key: bytes,
label: str,
credential_password: Union[bytes, str],
derivation_password: Union[bytes, str],
derivation_password: str,
touch_required: bool = False,
) -> Credential:
"""Import a symmetric YubiHSM Auth credential derived from password"""
Expand Down

0 comments on commit 58ce91e

Please sign in to comment.