diff options
Diffstat (limited to 'crypto/src/cms/PasswordRecipientInfoGenerator.cs')
-rw-r--r-- | crypto/src/cms/PasswordRecipientInfoGenerator.cs | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/crypto/src/cms/PasswordRecipientInfoGenerator.cs b/crypto/src/cms/PasswordRecipientInfoGenerator.cs index 1243bea9f..d3faa1bf0 100644 --- a/crypto/src/cms/PasswordRecipientInfoGenerator.cs +++ b/crypto/src/cms/PasswordRecipientInfoGenerator.cs @@ -11,10 +11,9 @@ using Org.BouncyCastle.Utilities; namespace Org.BouncyCastle.Cms { - internal class PasswordRecipientInfoGenerator : RecipientInfoGenerator + internal class PasswordRecipientInfoGenerator + : RecipientInfoGenerator { - private static readonly CmsEnvelopedHelper Helper = CmsEnvelopedHelper.Instance; - private AlgorithmIdentifier keyDerivationAlgorithm; private KeyParameter keyEncryptionKey; // TODO Can get this from keyEncryptionKey? @@ -43,7 +42,7 @@ namespace Org.BouncyCastle.Cms { byte[] keyBytes = contentEncryptionKey.GetKey(); - string rfc3211WrapperName = Helper.GetRfc3211WrapperName(keyEncryptionKeyOID); + string rfc3211WrapperName = CmsEnvelopedHelper.GetRfc3211WrapperName(keyEncryptionKeyOID); IWrapper keyWrapper = WrapperUtilities.GetWrapper(rfc3211WrapperName); // Note: In Java build, the IV is automatically generated in JCE layer |