diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-04 12:04:27 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2022-10-04 12:04:27 +0700 |
commit | 2446ee5e5a03f864ab8fde48bc9c4c1f133f9271 (patch) | |
tree | 3680f45b5f9d04835b4989b01a547af4d215db08 /crypto/src/cms/RecipientInformation.cs | |
parent | Update CryptoProObjectIdentifiers (diff) | |
download | BouncyCastle.NET-ed25519-2446ee5e5a03f864ab8fde48bc9c4c1f133f9271.tar.xz |
Refactoring
Diffstat (limited to 'crypto/src/cms/RecipientInformation.cs')
-rw-r--r-- | crypto/src/cms/RecipientInformation.cs | 6 |
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); } } |