diff options
Diffstat (limited to 'crypto/src/math/raw/Nat192.cs')
-rw-r--r-- | crypto/src/math/raw/Nat192.cs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/crypto/src/math/raw/Nat192.cs b/crypto/src/math/raw/Nat192.cs index 752290747..7c36b21cf 100644 --- a/crypto/src/math/raw/Nat192.cs +++ b/crypto/src/math/raw/Nat192.cs @@ -169,6 +169,15 @@ namespace Org.BouncyCastle.Math.Raw z[zOff + 2] = x[xOff + 2]; } +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + public static void Copy64(ReadOnlySpan<ulong> x, Span<ulong> z) + { + z[0] = x[0]; + z[1] = x[1]; + z[2] = x[2]; + } +#endif + public static uint[] Create() { return new uint[6]; @@ -310,7 +319,11 @@ namespace Org.BouncyCastle.Math.Raw return true; } +#if NETCOREAPP2_1_OR_GREATER || NETSTANDARD2_1_OR_GREATER + public static bool IsZero64(ReadOnlySpan<ulong> x) +#else public static bool IsZero64(ulong[] x) +#endif { for (int i = 0; i < 3; ++i) { |