<PackageReference Include="BouncyCastle.Cryptography" Version="2.5.0" />

Vector

static class Vector
using System; using System.Runtime.CompilerServices; using System.Runtime.Intrinsics; namespace Org.BouncyCastle.Runtime.Intrinsics { internal static class Vector { internal static bool IsPacked { get { if (Unsafe.SizeOf<Vector64<byte>>() == 8 && Unsafe.SizeOf<Vector128<byte>>() == 16) return Unsafe.SizeOf<Vector256<byte>>() == 32; return false; } } internal static bool IsPackedLittleEndian { get { if (IsPacked) return BitConverter.IsLittleEndian; return false; } } } }