summary refs log tree commit diff
path: root/crypto/src/cms/CMSSignedDataStreamGenerator.cs
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/src/cms/CMSSignedDataStreamGenerator.cs')
-rw-r--r--crypto/src/cms/CMSSignedDataStreamGenerator.cs10
1 files changed, 5 insertions, 5 deletions
diff --git a/crypto/src/cms/CMSSignedDataStreamGenerator.cs b/crypto/src/cms/CMSSignedDataStreamGenerator.cs
index 81f6f5068..800093207 100644
--- a/crypto/src/cms/CMSSignedDataStreamGenerator.cs
+++ b/crypto/src/cms/CMSSignedDataStreamGenerator.cs
@@ -653,7 +653,7 @@ namespace Org.BouncyCastle.Cms
 
 			if (otherCert)
 			{
-				return new DerInteger(5);
+				return DerInteger.Five;
 			}
 
 			if (_crls != null)
@@ -670,20 +670,20 @@ namespace Org.BouncyCastle.Cms
 
 			if (otherCrl)
 			{
-				return new DerInteger(5);
+				return DerInteger.Five;
 			}
 
 			if (attrCertV2Found)
 			{
-				return new DerInteger(4);
+				return DerInteger.Four;
 			}
 
             if (attrCertV1Found || !CmsObjectIdentifiers.Data.Equals(contentOid) || CheckForVersion3(_signers))
             {
-                return new DerInteger(3);
+                return DerInteger.Three;
             }
 
-            return new DerInteger(1);
+            return DerInteger.One;
         }
 
 		private bool CheckForVersion3(IList<SignerInformation> signerInfos)