summary refs log tree commit diff
path: root/crypto/src/asn1/x9
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2021-02-08 19:26:46 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2021-02-08 19:26:46 +0700
commit50335415dd4d1809782181874e38a275734b76f5 (patch)
tree36ce4b945cf1326487e168cda480ed7fd3e2d9d9 /crypto/src/asn1/x9
parentEnv. var. to enforce correct X.509 cert encoding (diff)
downloadBouncyCastle.NET-ed25519-50335415dd4d1809782181874e38a275734b76f5.tar.xz
New HasValue methods
Diffstat (limited to 'crypto/src/asn1/x9')
-rw-r--r--crypto/src/asn1/x9/X9ECParameters.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/x9/X9ECParameters.cs b/crypto/src/asn1/x9/X9ECParameters.cs
index e1b29ca13..aa84063b8 100644
--- a/crypto/src/asn1/x9/X9ECParameters.cs
+++ b/crypto/src/asn1/x9/X9ECParameters.cs
@@ -35,7 +35,7 @@ namespace Org.BouncyCastle.Asn1.X9
             Asn1Sequence seq)
         {
             if (!(seq[0] is DerInteger)
-                || !((DerInteger)seq[0]).Value.Equals(BigInteger.One))
+                || !((DerInteger)seq[0]).HasValue(1))
             {
                 throw new ArgumentException("bad version in X9ECParameters");
             }