mirror of
https://github.com/Thealexbarney/LibHac.git
synced 2024-11-14 10:49:41 +01:00
26 lines
No EOL
557 B
C#
26 lines
No EOL
557 B
C#
using LibHac.Crypto;
|
|
using Xunit;
|
|
|
|
namespace LibHac.Tests.CryptoTests;
|
|
|
|
public sealed class AesIntrinsicsRequiredTheoryAttribute : TheoryAttribute
|
|
{
|
|
public AesIntrinsicsRequiredTheoryAttribute()
|
|
{
|
|
if (!Aes.IsAesNiSupported())
|
|
{
|
|
Skip = "AES intrinsics required";
|
|
}
|
|
}
|
|
}
|
|
|
|
public sealed class AesIntrinsicsRequiredFactAttribute : FactAttribute
|
|
{
|
|
public AesIntrinsicsRequiredFactAttribute()
|
|
{
|
|
if (!Aes.IsAesNiSupported())
|
|
{
|
|
Skip = "AES intrinsics required";
|
|
}
|
|
}
|
|
} |