private void ReadCbc(Stream inputStream) { BigEndianBinaryReader reader = new BigEndianBinaryReader(inputStream, Encoding.ASCII, true); reader.Read(_iv, 0, EncryptionIvCbcSize); byte[] encryptedData = new byte[inputStream.Length - EncryptionIvCbcSize]; reader.Read(encryptedData, 0, encryptedData.Length); Data = CryptographyUtility.DecryptAesCbc(new MemoryStream(encryptedData), _key, _iv); }