LibHac/tests/LibHac.Tests/CryptoTests/Common.cs
2019-11-22 13:59:47 -05:00

17 lines
397 B
C#

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);
}
}
}