summary refs log tree commit diff
path: root/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2023-06-14 13:01:06 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2023-06-14 13:01:06 +0700
commitceebe8fb52daf0fbadecbfb0e0a86b48ce011b38 (patch)
treeb9084b3b32bea4462f775211adb3c666030a8c32 /crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs
parentPrefer AES/GCM over CHACHA20_POLY1305 (cipher suites) (diff)
downloadBouncyCastle.NET-ed25519-ceebe8fb52daf0fbadecbfb0e0a86b48ce011b38.tar.xz
Add new variant of GetBasicAgreementWithKdf
Diffstat (limited to 'crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs')
-rw-r--r--crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs b/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs
index 6bcba0d80..479aa50cb 100644
--- a/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs
+++ b/crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs
@@ -123,7 +123,7 @@ namespace Org.BouncyCastle.Cms
 
 				// Use key agreement to choose a wrap key for this recipient
 				IBasicAgreement keyAgreement = AgreementUtilities.GetBasicAgreementWithKdf(
-					m_keyAgreementOid, m_keyEncryptionOid.Id);
+					m_keyAgreementOid, m_keyEncryptionOid);
 				keyAgreement.Init(new ParametersWithRandom(senderPrivateParams, random));
 				BigInteger agreedValue = keyAgreement.CalculateAgreement(recipientPublicParams);