IKVM11  11
Java SE 11 Virtual Machine for .NET
Loading...
Searching...
No Matches
GHASH.cs
Go to the documentation of this file.
1using System;
3
5
7{
8
12 [HideFromJava]
13 internal static class GHASH
14 {
15
27 [MethodImpl(MethodImplOptions.AggressiveInlining)]
28 public static bool ProcessBlocks(byte[] data, int inOfs, int blocks, long[] st, long[] subH)
29 {
30#if FIRST_PASS
31 throw new NotImplementedException();
32#else
33#if NETCOREAPP3_0_OR_GREATER
34 if (GHASH_x86.IsSupported)
35 {
36 GHASH_x86.ProcessBlocks(st, subH, data.AsSpan(inOfs), blocks);
37 return true;
38 }
39
40#if NET6_0_OR_GREATER
41 if (GHASH_Arm64.IsSupported)
42 {
43 GHASH_Arm64.ProcessBlocks(st, subH, data.AsSpan(inOfs), blocks);
44 return true;
45 }
46#endif
47#endif
48
49 return false;
50#endif
51 }
52
53 }
54
55}