diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-12 18:09:06 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2024-06-12 18:09:06 +0700 |
commit | daec40507f75c8bbe80f54e25338d31a2b411e39 (patch) | |
tree | f336873fdf0be8476dc45de28a30dda37976bd43 /crypto/src/asn1/ocsp | |
parent | Dilithium SampleInBall change and KATs updated (diff) | |
download | BouncyCastle.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.cs | 2 | ||||
-rw-r--r-- | crypto/src/asn1/ocsp/TBSRequest.cs | 2 |
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; |