LibHac/tests/LibHac.Tests/CryptoTests/Common.cs

18 lines
397 B
C#
Raw Normal View History

2019-11-09 08:32:13 +01:00
using LibHac.Crypto2;
using Xunit;
namespace LibHac.Tests.CryptoTests
{
internal static class Common
{
internal static void CipherTestCore(byte[] inputData, byte[] expected, ICipher cipher)
{
var outputData = new byte[expected.Length];
cipher.Transform(inputData, outputData);
Assert.Equal(expected, outputData);
}
}
}