diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-06-14 13:01:06 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2023-06-14 13:01:06 +0700 |
commit | ceebe8fb52daf0fbadecbfb0e0a86b48ce011b38 (patch) | |
tree | b9084b3b32bea4462f775211adb3c666030a8c32 /crypto/src/cms/KeyAgreeRecipientInfoGenerator.cs | |
parent | Prefer AES/GCM over CHACHA20_POLY1305 (cipher suites) (diff) | |
download | BouncyCastle.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.cs | 2 |
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); |