diff --git a/crypto/src/math/ec/rfc7748/X25519Field.cs b/crypto/src/math/ec/rfc7748/X25519Field.cs
index d0b835226..22486e453 100644
--- a/crypto/src/math/ec/rfc7748/X25519Field.cs
+++ b/crypto/src/math/ec/rfc7748/X25519Field.cs
@@ -149,7 +149,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc7748
}
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static void Decode(uint[] x, int xOff, int[] z)
{
Decode128(x, xOff, z, 0);
@@ -198,7 +198,7 @@ namespace Org.BouncyCastle.Math.EC.Rfc7748
return n;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static void Encode(int[] x, uint[] z, int zOff)
{
Encode128(x, 0, z, zOff);
diff --git a/crypto/src/math/ec/rfc7748/X448Field.cs b/crypto/src/math/ec/rfc7748/X448Field.cs
index 6d8c60e78..9e3693a3f 100644
--- a/crypto/src/math/ec/rfc7748/X448Field.cs
+++ b/crypto/src/math/ec/rfc7748/X448Field.cs
@@ -5,7 +5,7 @@ using Org.BouncyCastle.Math.Raw;
namespace Org.BouncyCastle.Math.EC.Rfc7748
{
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public abstract class X448Field
{
public const int Size = 16;
diff --git a/crypto/src/util/Arrays.cs b/crypto/src/util/Arrays.cs
index d7227df2b..87eab1d5f 100644
--- a/crypto/src/util/Arrays.cs
+++ b/crypto/src/util/Arrays.cs
@@ -142,7 +142,7 @@ namespace Org.BouncyCastle.Utilities
return HaveSameContents(a, b);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static bool AreEqual(uint[] a, uint[] b)
{
if (a == b)
@@ -165,7 +165,7 @@ namespace Org.BouncyCastle.Utilities
return HaveSameContents(a, b);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static bool AreEqual(ulong[] a, ulong[] b)
{
if (a == b)
@@ -354,7 +354,7 @@ namespace Org.BouncyCastle.Utilities
return hc;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static int GetHashCode(ushort[] data)
{
if (data == null)
@@ -389,7 +389,7 @@ namespace Org.BouncyCastle.Utilities
return hc;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static int GetHashCode(uint[] data)
{
if (data == null)
@@ -407,7 +407,7 @@ namespace Org.BouncyCastle.Utilities
return hc;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static int GetHashCode(uint[] data, int off, int len)
{
if (data == null)
@@ -425,7 +425,7 @@ namespace Org.BouncyCastle.Utilities
return hc;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static int GetHashCode(ulong[] data)
{
if (data == null)
@@ -446,7 +446,7 @@ namespace Org.BouncyCastle.Utilities
return hc;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static int GetHashCode(ulong[] data, int off, int len)
{
if (data == null)
@@ -482,7 +482,7 @@ namespace Org.BouncyCastle.Utilities
return data == null ? null : (short[])data.Clone();
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ushort[] Clone(ushort[] data)
{
return data == null ? null : (ushort[])data.Clone();
@@ -493,7 +493,7 @@ namespace Org.BouncyCastle.Utilities
return data == null ? null : (int[])data.Clone();
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static uint[] Clone(uint[] data)
{
return data == null ? null : (uint[])data.Clone();
@@ -504,7 +504,7 @@ namespace Org.BouncyCastle.Utilities
return data == null ? null : (long[])data.Clone();
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong[] Clone(ulong[] data)
{
return data == null ? null : (ulong[])data.Clone();
@@ -520,7 +520,7 @@ namespace Org.BouncyCastle.Utilities
return existing;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong[] Clone(ulong[] data, ulong[] existing)
{
if (data == null)
@@ -721,7 +721,7 @@ namespace Org.BouncyCastle.Utilities
return rv;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ushort[] Concatenate(ushort[] a, ushort[] b)
{
if (a == null)
diff --git a/crypto/src/util/Integers.cs b/crypto/src/util/Integers.cs
index 00fb957aa..116250375 100644
--- a/crypto/src/util/Integers.cs
+++ b/crypto/src/util/Integers.cs
@@ -18,7 +18,7 @@ namespace Org.BouncyCastle.Utilities
return (int)HighestOneBit((uint)i);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static uint HighestOneBit(uint i)
{
i |= i >> 1;
@@ -34,7 +34,7 @@ namespace Org.BouncyCastle.Utilities
return i & -i;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static uint LowestOneBit(uint i)
{
return (uint)LowestOneBit((int)i);
@@ -67,7 +67,7 @@ namespace Org.BouncyCastle.Utilities
return (int)Reverse((uint)i);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static uint Reverse(uint i)
{
i = Bits.BitPermuteStepSimple(i, 0x55555555U, 1);
@@ -81,7 +81,7 @@ namespace Org.BouncyCastle.Utilities
return (int)ReverseBytes((uint)i);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static uint ReverseBytes(uint i)
{
return RotateLeft(i & 0xFF00FF00U, 8) |
@@ -93,7 +93,7 @@ namespace Org.BouncyCastle.Utilities
return (i << distance) ^ (int)((uint)i >> -distance);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static uint RotateLeft(uint i, int distance)
{
return (i << distance) ^ (i >> -distance);
@@ -104,7 +104,7 @@ namespace Org.BouncyCastle.Utilities
return (int)((uint)i >> distance) ^ (i << -distance);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static uint RotateRight(uint i, int distance)
{
return (i >> distance) ^ (i << -distance);
diff --git a/crypto/src/util/Longs.cs b/crypto/src/util/Longs.cs
index a2d7dde0f..e6ff2ea39 100644
--- a/crypto/src/util/Longs.cs
+++ b/crypto/src/util/Longs.cs
@@ -20,7 +20,7 @@ namespace Org.BouncyCastle.Utilities
return (long)HighestOneBit((ulong)i);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong HighestOneBit(ulong i)
{
i |= i >> 1;
@@ -37,7 +37,7 @@ namespace Org.BouncyCastle.Utilities
return i & -i;
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong LowestOneBit(ulong i)
{
return (ulong)LowestOneBit((long)i);
@@ -66,7 +66,7 @@ namespace Org.BouncyCastle.Utilities
return (long)Reverse((ulong)i);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong Reverse(ulong i)
{
i = Bits.BitPermuteStepSimple(i, 0x5555555555555555UL, 1);
@@ -80,7 +80,7 @@ namespace Org.BouncyCastle.Utilities
return (long)ReverseBytes((ulong)i);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong ReverseBytes(ulong i)
{
return RotateLeft(i & 0xFF000000FF000000UL, 8) |
@@ -94,7 +94,7 @@ namespace Org.BouncyCastle.Utilities
return (i << distance) ^ (long)((ulong)i >> -distance);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong RotateLeft(ulong i, int distance)
{
return (i << distance) ^ (i >> -distance);
@@ -105,7 +105,7 @@ namespace Org.BouncyCastle.Utilities
return (long)((ulong)i >> distance) ^ (i << -distance);
}
- [CLSCompliantAttribute(false)]
+ [CLSCompliant(false)]
public static ulong RotateRight(ulong i, int distance)
{
return (i >> distance) ^ (i << -distance);
|