diff options
Diffstat (limited to 'crypto/src/util/BigIntegers.cs')
-rw-r--r-- | crypto/src/util/BigIntegers.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/util/BigIntegers.cs b/crypto/src/util/BigIntegers.cs index 9c5477e6a..d1b15f869 100644 --- a/crypto/src/util/BigIntegers.cs +++ b/crypto/src/util/BigIntegers.cs @@ -187,7 +187,7 @@ namespace Org.BouncyCastle.Utilities public static BigInteger ModOddInverse(BigInteger M, BigInteger X) { if (!M.TestBit(0)) - throw new ArgumentException("must be odd", "M"); + throw new ArgumentException("must be odd", nameof(M)); if (M.SignValue != 1) throw new ArithmeticException("BigInteger: modulus not positive"); if (X.SignValue < 0 || X.CompareTo(M) >= 0) @@ -226,7 +226,7 @@ namespace Org.BouncyCastle.Utilities public static BigInteger ModOddInverseVar(BigInteger M, BigInteger X) { if (!M.TestBit(0)) - throw new ArgumentException("must be odd", "M"); + throw new ArgumentException("must be odd", nameof(M)); if (M.SignValue != 1) throw new ArithmeticException("BigInteger: modulus not positive"); if (M.Equals(One)) |