From 816797a32bd87eac47d5f60bae17a1f640fd5da7 Mon Sep 17 00:00:00 2001 From: QuantumEntangledAndy Date: Fri, 4 Aug 2023 22:27:28 +0700 Subject: [PATCH] Match both 0x02, 0x12 as the basic AES --- crates/core/src/bc/codex.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/core/src/bc/codex.rs b/crates/core/src/bc/codex.rs index 9a44438..e137808 100644 --- a/crates/core/src/bc/codex.rs +++ b/crates/core/src/bc/codex.rs @@ -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), )), _ => {