From 8ce8a4d09d8e6cfb29e8ecbb96a354a3eed9c321 Mon Sep 17 00:00:00 2001 From: Peter Dettman Date: Wed, 26 Jul 2023 13:47:16 +0700 Subject: Refactor CMS helpers --- crypto/src/cms/PasswordRecipientInformation.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crypto/src/cms/PasswordRecipientInformation.cs') diff --git a/crypto/src/cms/PasswordRecipientInformation.cs b/crypto/src/cms/PasswordRecipientInformation.cs index ff4a20d68..23447a25e 100644 --- a/crypto/src/cms/PasswordRecipientInformation.cs +++ b/crypto/src/cms/PasswordRecipientInformation.cs @@ -51,7 +51,7 @@ namespace Org.BouncyCastle.Cms Asn1Sequence kekAlgParams = (Asn1Sequence)kekAlg.Parameters; byte[] encryptedKey = info.EncryptedKey.GetOctets(); string kekAlgName = DerObjectIdentifier.GetInstance(kekAlgParams[0]).Id; - string cName = CmsEnvelopedHelper.Instance.GetRfc3211WrapperName(kekAlgName); + string cName = CmsEnvelopedHelper.GetRfc3211WrapperName(kekAlgName); IWrapper keyWrapper = WrapperUtilities.GetWrapper(cName); var iv = Asn1OctetString.GetInstance(kekAlgParams[1]); -- cgit 1.4.1