diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-14 20:25:34 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-02-14 20:25:34 +0700 |
commit | ee97cb9053cced3ccfedd7ddf210579827859b6a (patch) | |
tree | 6c2c429ef86ff67a1926242e2bb15ac845fdf3bd /crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs | |
parent | Avoid unnecessary recoding (diff) | |
download | BouncyCastle.NET-ed25519-ee97cb9053cced3ccfedd7ddf210579827859b6a.tar.xz |
Refactoring in Cms
Diffstat (limited to 'crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs')
-rw-r--r-- | crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs b/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs index c7c7f563f..f74365571 100644 --- a/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs +++ b/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs @@ -133,7 +133,7 @@ namespace Org.BouncyCastle.Cms keyEncryptionOID, keyEncryptionKeyBytes); // Wrap the content encryption key with the agreement key - IWrapper keyWrapper = Helper.CreateWrapper(keyEncryptionOID.Id); + IWrapper keyWrapper = WrapperUtilities.GetWrapper(keyEncryptionOID.Id); keyWrapper.Init(true, new ParametersWithRandom(keyEncryptionKey, random)); byte[] encryptedKeyBytes = keyWrapper.Wrap(keyBytes, 0, keyBytes.Length); |