summary refs log tree commit diff
path: root/crypto
diff options
context:
space:
mode:
authorPeter Dettman <peter.dettman@bouncycastle.org>2022-01-17 18:59:09 +0700
committerPeter Dettman <peter.dettman@bouncycastle.org>2022-01-17 18:59:09 +0700
commit89670116f64f4d5cd10af53e360c851ec6ce2e55 (patch)
tree69bff05599b39f5657b017268946014183f537c5 /crypto
parentAdd new utility methods from bc-java (diff)
parentfix: NullReferenceException in DerOctetString..ctor (diff)
downloadBouncyCastle.NET-ed25519-89670116f64f4d5cd10af53e360c851ec6ce2e55.tar.xz
Merge branch 'yla/fix/null-reference' of https://github.com/ylabade/bc-csharp
Diffstat (limited to 'crypto')
-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;
         }