Пример #1
0
        public static async ValueTask <Stream?> Decrypt(Stream data)
        {
            Stream decrypted = await AesEncryptionProvider.DecryptAsync(data);

            Stream result = SaveFileHandler.RemoveTrailingZeroes(decrypted);

            result.Seek(0, SeekOrigin.Begin);
            return(result);
        }
Пример #2
0
        private static async ValueTask <Stream?> Decrypt(Stream data)
        {
            Stream decrypted = await AesEncryptionProvider.DecryptAsync(data);

            return(SaveFileHandler.RemoveTrailingZeroes(decrypted));
        }