summary refs log tree commit diff
diff options
context:
space:
mode:
authorLABADE Youval <youval.labade@edenred.com>2022-01-12 17:20:59 +0100
committerLABADE Youval <youval.labade@edenred.com>2022-01-12 17:20:59 +0100
commitc1f57e99a52e5cc4ab92465d53dd3428f6bd3d39 (patch)
tree3f138dbb2c7bfbd310a9004cfcac75c7146a1d39
parentTables8kGcmMultiplier performance (diff)
downloadBouncyCastle.NET-ed25519-c1f57e99a52e5cc4ab92465d53dd3428f6bd3d39.tar.xz
fix: NullReferenceException in DerOctetString..ctor
-rw-r--r--crypto/src/cms/KeyTransRecipientInfoGenerator.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/cms/KeyTransRecipientInfoGenerator.cs b/crypto/src/cms/KeyTransRecipientInfoGenerator.cs
index 60020be1f..6ee3af6b6 100644
--- a/crypto/src/cms/KeyTransRecipientInfoGenerator.cs
+++ b/crypto/src/cms/KeyTransRecipientInfoGenerator.cs
@@ -37,7 +37,7 @@ namespace Org.BouncyCastle.Cms
 
         public KeyTransRecipientInfoGenerator(byte[] subjectKeyID, IKeyWrapper keyWrapper)
         {
-            this.subjectKeyIdentifier = new DerOctetString(subjectKeyIdentifier);
+            this.subjectKeyIdentifier = new DerOctetString(subjectKeyID);
             this.keyWrapper = keyWrapper;
         }