From c31ed2d7b5e9da9350290a9237a85d503968c4ab Mon Sep 17 00:00:00 2001 From: M1nd3r Date: Fri, 26 Jul 2024 15:28:18 +0200 Subject: [PATCH] fix(core): change PROTOCOL_NAME in thp encryption [no changelog] --- core/src/trezor/wire/thp/crypto.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/trezor/wire/thp/crypto.py b/core/src/trezor/wire/thp/crypto.py index 21e431712..c67ff48f7 100644 --- a/core/src/trezor/wire/thp/crypto.py +++ b/core/src/trezor/wire/thp/crypto.py @@ -62,7 +62,7 @@ class BusyDecoder: return computed_tag == tag -PROTOCOL_NAME = bytes("Noise_XX_25519_AESGCM_SHA256", "ascii") +PROTOCOL_NAME = b"Noise_XX_25519_AESGCM_SHA256\x00\x00\x00\x00" IV_1 = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00" IV_2 = b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x01"