Match both 0x02, 0x12 as the basic AES

This commit is contained in:
QuantumEntangledAndy committed 2023-08-04 22:27:28 +07:00
1 parent c3921cbb6c
commit 816797a32b
1 file changed
+1 -1
+1 -1
View File
@@ -110,7 +110,7 @@ impl Decoder for BcCodex {
match encryption_protocol_byte {
0x00 => self.context.set_encrypted(EncryptionProtocol::Unencrypted),
0x01 => self.context.set_encrypted(EncryptionProtocol::BCEncrypt),
0x02 => self.context.set_encrypted(EncryptionProtocol::Aes(
0x02 | 0x12 => self.context.set_encrypted(EncryptionProtocol::Aes(
self.context.credentials.make_aeskey(nonce),
)),
_ => {