14 internal static class AESCrypt
28 [MethodImpl(MethodImplOptions.AggressiveInlining)]
29 public static bool DecryptBlock(
byte[] @in,
int inOffset,
byte[] @out,
int outOffset,
int[] K)
32 throw new NotImplementedException();
34#if NETCOREAPP3_0_OR_GREATER
35 if (AESCrypt_x86.IsSupported)
37 AESCrypt_x86.DecryptBlock(@in.AsSpan(inOffset), @out.AsSpan(outOffset), K);
42 if (AESCrypt_Arm.IsSupported)
44 AESCrypt_Arm.DecryptBlock(@in.AsSpan(inOffset), @out.AsSpan(outOffset), K);
65 [MethodImpl(MethodImplOptions.AggressiveInlining)]
66 public static bool EncryptBlock(
byte[] @in,
int inOffset,
byte[] @out,
int outOffset,
int[] K)
69 throw new NotImplementedException();
71#if NETCOREAPP3_0_OR_GREATER
72 if (AESCrypt_x86.IsSupported)
74 AESCrypt_x86.EncryptBlock(@in.AsSpan(inOffset), @out.AsSpan(outOffset), K);
79 if (AESCrypt_Arm.IsSupported)
81 AESCrypt_Arm.EncryptBlock(@in.AsSpan(inOffset), @out.AsSpan(outOffset), K);