diff options
Diffstat (limited to 'crypto/src/cms')
-rw-r--r-- | crypto/src/cms/KeyAgreeRecipientInformation.cs | 4 | ||||
-rw-r--r-- | crypto/src/cms/KeyTransRecipientInformation.cs | 2 | ||||
-rw-r--r-- | crypto/src/cms/SignerInformation.cs | 2 |
3 files changed, 4 insertions, 4 deletions
diff --git a/crypto/src/cms/KeyAgreeRecipientInformation.cs b/crypto/src/cms/KeyAgreeRecipientInformation.cs index 893b88b73..f368cb211 100644 --- a/crypto/src/cms/KeyAgreeRecipientInformation.cs +++ b/crypto/src/cms/KeyAgreeRecipientInformation.cs @@ -52,7 +52,7 @@ namespace Org.BouncyCastle.Cms // Note: 'date' and 'other' fields of RecipientKeyIdentifier appear to be only informational - rid.SubjectKeyIdentifier = rKeyID.SubjectKeyIdentifier.GetOctets(); + rid.SubjectKeyIdentifier = rKeyID.SubjectKeyIdentifier.GetEncoded(Asn1Encodable.Der); } infos.Add(new KeyAgreeRecipientInformation(info, rid, id.EncryptedKey, @@ -93,7 +93,7 @@ namespace Org.BouncyCastle.Cms { SubjectKeyIdentifier ski = originator.SubjectKeyIdentifier; - origID.SubjectKeyIdentifier = ski.GetKeyIdentifier(); + origID.SubjectKeyIdentifier = ski.GetEncoded(Asn1Encodable.Der); } return GetPublicKeyFromOriginatorID(origID); diff --git a/crypto/src/cms/KeyTransRecipientInformation.cs b/crypto/src/cms/KeyTransRecipientInformation.cs index 2a40fed06..e09e6015f 100644 --- a/crypto/src/cms/KeyTransRecipientInformation.cs +++ b/crypto/src/cms/KeyTransRecipientInformation.cs @@ -40,7 +40,7 @@ namespace Org.BouncyCastle.Cms { Asn1OctetString octs = Asn1OctetString.GetInstance(r.ID); - rid.SubjectKeyIdentifier = octs.GetOctets(); + rid.SubjectKeyIdentifier = octs.GetEncoded(Asn1Encodable.Der); } else { diff --git a/crypto/src/cms/SignerInformation.cs b/crypto/src/cms/SignerInformation.cs index df6624f99..28f1ecfa9 100644 --- a/crypto/src/cms/SignerInformation.cs +++ b/crypto/src/cms/SignerInformation.cs @@ -58,7 +58,7 @@ namespace Org.BouncyCastle.Cms { Asn1OctetString octs = Asn1OctetString.GetInstance(s.ID); - sid.SubjectKeyIdentifier = octs.GetEncoded(); + sid.SubjectKeyIdentifier = octs.GetEncoded(Asn1Encodable.Der); } else { |