pub fn decrypt_local(encrypted: &[u8], key: &AuthKey) -> Result<Vec<u8>>Expand description
Decrypt data using AES-256-IGE mode (local tdata format)
Format:
- bytes[0..16]:
encrypted_key(SHA1 hash of decrypted data, used to derive AES key/IV) - bytes[16..]: actual encrypted data
After decryption:
- bytes[0..4]: original data length (little endian)
- bytes[4..4+len]: actual data
- bytes[4+len..]: padding