Skip to content

Commit

Permalink
fixup! tests(python): improve thp device tests [no changelog]
Browse files Browse the repository at this point in the history
  • Loading branch information
M1nd3r committed Jan 29, 2025
1 parent ea1aa4a commit 65f25e3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/device_tests/thp/test_thp.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ def test_pairing_qr_code(client: Client) -> None:

secret_msg = _read_message(ThpQrCodeSecret)

# Check that code was derived from revealted secret
# Check that the `code` was derived from the revealed secret
sha_ctx = hashlib.sha256(ThpPairingMethod.QrCode.to_bytes(1, "big"))
sha_ctx.update(protocol.handshake_hash)
sha_ctx.update(secret_msg.secret)
Expand Down Expand Up @@ -237,7 +237,7 @@ def test_pairing_code_entry(client: Client) -> None:

secret_msg = _read_message(ThpCodeEntrySecret)

# Check commitment and code
# Check `commitment` and `code`
sha_ctx = hashlib.sha256(secret_msg.secret)
computed_commitment = sha_ctx.digest()
assert commitment == computed_commitment
Expand Down

0 comments on commit 65f25e3

Please sign in to comment.