summary refs log tree commit diff
path: root/crypto/src/asn1/cms/KEKIdentifier.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-01-17 20:32:13 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-01-17 20:32:13 +0700
commit2e1dc7df1b47554ed229b65b9574973b43541a10 (patch)
treefd8b51ede5fe64ef823d8eb60c5db17e40f31544 /crypto/src/asn1/cms/KEKIdentifier.cs
parentFIx fetching of DateOfCertGen extension (diff)
downloadBouncyCastle.NET-ed25519-2e1dc7df1b47554ed229b65b9574973b43541a10.tar.xz
Refactoring in Asn1
Diffstat (limited to 'crypto/src/asn1/cms/KEKIdentifier.cs')
-rw-r--r--crypto/src/asn1/cms/KEKIdentifier.cs11
1 files changed, 5 insertions, 6 deletions
diff --git a/crypto/src/asn1/cms/KEKIdentifier.cs b/crypto/src/asn1/cms/KEKIdentifier.cs
index 36ab94f52..70ae8c438 100644
--- a/crypto/src/asn1/cms/KEKIdentifier.cs
+++ b/crypto/src/asn1/cms/KEKIdentifier.cs
@@ -21,19 +21,18 @@ namespace Org.BouncyCastle.Asn1.Cms
             this.other = other;
         }
 
-		public KekIdentifier(
-            Asn1Sequence seq)
+		public KekIdentifier(Asn1Sequence seq)
         {
-            keyIdentifier = (Asn1OctetString) seq[0];
+            keyIdentifier = (Asn1OctetString)seq[0];
 
 			switch (seq.Count)
             {
             case 1:
 				break;
             case 2:
-				if (seq[1] is Asn1GeneralizedTime)
+				if (seq[1] is Asn1GeneralizedTime asn1GeneralizedTime)
 				{
-					date = (Asn1GeneralizedTime) seq[1];
+					date = asn1GeneralizedTime;
 				}
 				else
 				{
@@ -41,7 +40,7 @@ namespace Org.BouncyCastle.Asn1.Cms
 				}
 				break;
             case 3:
-				date  = (Asn1GeneralizedTime) seq[1];
+				date = (Asn1GeneralizedTime)seq[1];
 				other = OtherKeyAttribute.GetInstance(seq[2]);
 				break;
             default: