From 971c1cddf8bf2d0f69266d7c62097c11be0431e7 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Sat, 5 Aug 2023 10:10:22 +0700 Subject: [PATCH] Match on 0x12 inside de.rs too --- crates/core/src/bc/de.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/core/src/bc/de.rs b/crates/core/src/bc/de.rs index 4bf895b..931524a 100644 --- a/crates/core/src/bc/de.rs +++ b/crates/core/src/bc/de.rs @@ -159,7 +159,9 @@ fn bc_modern_msg<'a>( msg_id: 1, response_code, .. - } if (response_code & 0xff) == 0x02 => EncryptionProtocol::BCEncrypt, // This is AES but the first packet with the NONCE is BCEcrypt, since the NONCE in this packet is required to build the AES key + } if (response_code & 0xff) == 0x02 || (response_code & 0xff) == 0x12 => { + EncryptionProtocol::BCEncrypt + } // This is AES but the first packet with the NONCE is BCEcrypt, since the NONCE in this packet is required to build the AES key BcHeader { msg_id: 1, .. } if matches!(context.get_encrypted(), EncryptionProtocol::Aes(_)) => {