Skip to content

Commit fb9a103

Browse files
realityoneyulian-gaponenko
authored andcommitted
Set output stream as DER
DEVSIX-6119 Autoported commit. Original commit hash: [cb13bee45]
1 parent 466f25d commit fb9a103

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

itext/itext.kernel/itext/kernel/crypto/securityhandler/PubKeySecurityHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ private byte[] GetEncodedRecipient(int index) {
207207
pkcs7input[22] = two;
208208
pkcs7input[23] = one;
209209
MemoryStream baos = new MemoryStream();
210-
DerOutputStream k = new Org.BouncyCastle.Asn1.Asn1OutputStream(baos);
210+
DerOutputStream k = DerOutputStream.Create(baos, Org.BouncyCastle.Asn1.Asn1Encodable.Der);
211211
Asn1Object obj = CreateDERForRecipient(pkcs7input, (X509Certificate)certificate);
212212
k.WriteObject(obj);
213213
cms = baos.ToArray();

port-hash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
57b8664b5fa2dcf5a2a7e0391786f8c2cb4cbaf0
1+
6919b5c97acb1eb2784a38f17730272d732e8b21

0 commit comments

Comments
 (0)