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); }
private static async ValueTask <Stream?> Decrypt(Stream data) { Stream decrypted = await AesEncryptionProvider.DecryptAsync(data); return(SaveFileHandler.RemoveTrailingZeroes(decrypted)); }