1 // Licensed to the .NET Foundation under one or more agreements.
2 // The .NET Foundation licenses this file to you under the MIT license.
3 // See the LICENSE file in the project root for more information.
5 #pragma warning disable IDE0060 // unused parameters
6 using System
.Runtime
.CompilerServices
;
8 namespace System
.Runtime
.Intrinsics
.Arm
11 /// This class provides access to the ARM SHA256 hardware instructions via intrinsics
14 public abstract class Sha256
: ArmBase
18 public static new bool IsSupported { [Intrinsic] get => false; }
21 /// uint32x4_t vsha256hq_u32 (uint32x4_t hash_abcd, uint32x4_t hash_efgh, uint32x4_t wk)
22 /// A32: SHA256H.32 Qd, Qn, Qm
23 /// A64: SHA256H Qd, Qn, Vm.4S
25 public static Vector128
<uint> HashUpdate1(Vector128
<uint> hash_abcd
, Vector128
<uint> hash_efgh
, Vector128
<uint> wk
) { throw new PlatformNotSupportedException(); }
28 /// uint32x4_t vsha256h2q_u32 (uint32x4_t hash_efgh, uint32x4_t hash_abcd, uint32x4_t wk)
29 /// A32: SHA256H2.32 Qd, Qn, Qm
30 /// A64: SHA256H2 Qd, Qn, Vm.4S
32 public static Vector128
<uint> HashUpdate2(Vector128
<uint> hash_efgh
, Vector128
<uint> hash_abcd
, Vector128
<uint> wk
) { throw new PlatformNotSupportedException(); }
35 /// uint32x4_t vsha256su0q_u32 (uint32x4_t w0_3, uint32x4_t w4_7)
36 /// A32: SHA256SU0.32 Qd, Qm
37 /// A64: SHA256SU0 Vd.4S, Vn.4S
39 public static Vector128
<uint> ScheduleUpdate0(Vector128
<uint> w0_3
, Vector128
<uint> w4_7
) { throw new PlatformNotSupportedException(); }
42 /// uint32x4_t vsha256su1q_u32 (uint32x4_t w0_3, uint32x4_t w8_11, uint32x4_t w12_15)
43 /// A32: SHA256SU1.32 Qd, Qn, Qm
44 /// A64: SHA256SU1 Vd.4S, Vn.4S, Vm.4S
46 public static Vector128
<uint> ScheduleUpdate1(Vector128
<uint> w0_3
, Vector128
<uint> w8_11
, Vector128
<uint> w12_15
) { throw new PlatformNotSupportedException(); }