summary refs log tree commit diff
path: root/crypto/src/cms/RecipientInformation.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-10-04 12:04:27 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-10-04 12:04:27 +0700
commit2446ee5e5a03f864ab8fde48bc9c4c1f133f9271 (patch)
tree3680f45b5f9d04835b4989b01a547af4d215db08 /crypto/src/cms/RecipientInformation.cs
parentUpdate CryptoProObjectIdentifiers (diff)
downloadBouncyCastle.NET-ed25519-2446ee5e5a03f864ab8fde48bc9c4c1f133f9271.tar.xz
Refactoring
Diffstat (limited to 'crypto/src/cms/RecipientInformation.cs')
-rw-r--r--crypto/src/cms/RecipientInformation.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/src/cms/RecipientInformation.cs b/crypto/src/cms/RecipientInformation.cs
index 272b841f2..978962711 100644
--- a/crypto/src/cms/RecipientInformation.cs
+++ b/crypto/src/cms/RecipientInformation.cs
@@ -112,15 +112,15 @@ namespace Org.BouncyCastle.Cms
 			if (resultMac == null)
 			{
 				object cryptoObject = secureReadable.CryptoObject;
-				if (cryptoObject is IMac)
+				if (cryptoObject is IMac mac)
 				{
-					resultMac = MacUtilities.DoFinal((IMac)cryptoObject);
+					resultMac = MacUtilities.DoFinal(mac);
 				}
 			}
 
 			return Arrays.Clone(resultMac);
 		}
-		
+
 		public abstract CmsTypedStream GetContentStream(ICipherParameters key);
 	}
 }