diff --git a/LiteDB/Engine/FileReader/Legacy/AesEncryption.cs b/LiteDB/Engine/FileReader/Legacy/AesEncryption.cs index 1c18cf89d..5e7f9601b 100644 --- a/LiteDB/Engine/FileReader/Legacy/AesEncryption.cs +++ b/LiteDB/Engine/FileReader/Legacy/AesEncryption.cs @@ -58,7 +58,7 @@ public byte[] Decrypt(byte[] encryptedValue, int offset = 0, int count = -1) crypto.Write(encryptedValue, offset, count == -1 ? encryptedValue.Length : count); crypto.FlushFinalBlock(); stream.Position = 0; - var decryptedBytes = new Byte[stream.Length]; + var decryptedBytes = new byte[stream.Length]; stream.Read(decryptedBytes, 0, decryptedBytes.Length); return decryptedBytes; diff --git a/LiteDB/Engine/FileReader/Legacy/ByteReader.cs b/LiteDB/Engine/FileReader/Legacy/ByteReader.cs index 2fcae686b..730da51b3 100644 --- a/LiteDB/Engine/FileReader/Legacy/ByteReader.cs +++ b/LiteDB/Engine/FileReader/Legacy/ByteReader.cs @@ -103,7 +103,7 @@ public Decimal ReadDecimal() return new Decimal(new int[] { a, b, c, d }); } - public Byte[] ReadBytes(int count) + public byte[] ReadBytes(int count) { var buffer = new byte[count];