diff options
author | Peter Dettman <peter.dettman@gmail.com> | 2022-06-22 22:08:13 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@gmail.com> | 2022-06-22 22:08:13 +0700 |
commit | 5af9e09a87cc120e2f2da4fadc6b04685f96dda0 (patch) | |
tree | 9647961b98f60c9706ab8491e73070759d4a3545 /crypto/src/math/ec | |
parent | Change namespace for bzip2 code (diff) | |
download | BouncyCastle.NET-ed25519-5af9e09a87cc120e2f2da4fadc6b04685f96dda0.tar.xz |
Code cleanup
Diffstat (limited to 'crypto/src/math/ec')
-rw-r--r-- | crypto/src/math/ec/ECCurve.cs | 4 | ||||
-rw-r--r-- | crypto/src/math/ec/custom/sec/SecT571FieldElement.cs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/math/ec/ECCurve.cs b/crypto/src/math/ec/ECCurve.cs index 52d634cd2..838e407e3 100644 --- a/crypto/src/math/ec/ECCurve.cs +++ b/crypto/src/math/ec/ECCurve.cs @@ -843,14 +843,14 @@ namespace Org.BouncyCastle.Math.EC int AsInteger(string envVariable, int defaultValue) { - String v = Platform.GetEnvironmentVariable(envVariable); + string v = Platform.GetEnvironmentVariable(envVariable); if (v == null) { return defaultValue; } - return Int32.Parse(v); + return int.Parse(v); } } diff --git a/crypto/src/math/ec/custom/sec/SecT571FieldElement.cs b/crypto/src/math/ec/custom/sec/SecT571FieldElement.cs index 22edfe0a2..b9c581860 100644 --- a/crypto/src/math/ec/custom/sec/SecT571FieldElement.cs +++ b/crypto/src/math/ec/custom/sec/SecT571FieldElement.cs @@ -48,7 +48,7 @@ namespace Org.BouncyCastle.Math.EC.Custom.Sec return Nat576.ToBigInteger64(x); } - public override String FieldName + public override string FieldName { get { return "SecT571Field"; } } |