mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
18 lines
397 B
C#
18 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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|