Match on 0x12 inside de.rs too

This commit is contained in:
QuantumEntangledAndy committed 2023-08-05 10:10:22 +07:00
1 parent 816797a32b
commit 971c1cddf8
1 file changed
+3 -1
+3 -1
View File
@@ -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(_)) =>
{