summary refs log tree commit diff
path: root/crypto/src/cms/RecipientInformation.cs
diff options
context:
space:
mode:
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);
 	}
 }