summary refs log tree commit diff
diff options
context:
space:
mode:
-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;
         }