summary refs log tree commit diff
path: root/crypto/src/asn1/ocsp
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2024-06-12 18:09:06 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2024-06-12 18:09:06 +0700
commitdaec40507f75c8bbe80f54e25338d31a2b411e39 (patch)
treef336873fdf0be8476dc45de28a30dda37976bd43 /crypto/src/asn1/ocsp
parentDilithium SampleInBall change and KATs updated (diff)
downloadBouncyCastle.NET-ed25519-daec40507f75c8bbe80f54e25338d31a2b411e39.tar.xz
DerInteger constants for small values
Diffstat (limited to 'crypto/src/asn1/ocsp')
-rw-r--r--crypto/src/asn1/ocsp/ResponseData.cs2
-rw-r--r--crypto/src/asn1/ocsp/TBSRequest.cs2
2 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/ocsp/ResponseData.cs b/crypto/src/asn1/ocsp/ResponseData.cs
index 08b80d673..81ea2d0d3 100644
--- a/crypto/src/asn1/ocsp/ResponseData.cs
+++ b/crypto/src/asn1/ocsp/ResponseData.cs
@@ -21,7 +21,7 @@ namespace Org.BouncyCastle.Asn1.Ocsp
             return new ResponseData(Asn1Sequence.GetInstance(obj, explicitly));
         }
 
-        private static readonly DerInteger V1 = new DerInteger(0);
+        private static readonly DerInteger V1 = DerInteger.Zero;
 
         private readonly DerInteger m_version;
         private readonly bool m_versionPresent;
diff --git a/crypto/src/asn1/ocsp/TBSRequest.cs b/crypto/src/asn1/ocsp/TBSRequest.cs
index e041a9763..8f44464d1 100644
--- a/crypto/src/asn1/ocsp/TBSRequest.cs
+++ b/crypto/src/asn1/ocsp/TBSRequest.cs
@@ -21,7 +21,7 @@ namespace Org.BouncyCastle.Asn1.Ocsp
             return new TbsRequest(Asn1Sequence.GetInstance(obj, explicitly));
         }
 
-        private static readonly DerInteger V1 = new DerInteger(0);
+        private static readonly DerInteger V1 = DerInteger.Zero;
 
         private readonly DerInteger m_version;
         private readonly bool m_versionPresent;