diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-10-14 16:29:14 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-10-14 16:29:14 +0700 |
commit | b31a21061c5a42bc4325a911bcc18169feaddbbf (patch) | |
tree | a611ace1d4c1337794b0f4e7ee2f4661a4b02589 /crypto/src/asn1/DERSequenceGenerator.cs | |
parent | Obsolete DerOutputStream (diff) | |
download | BouncyCastle.NET-ed25519-b31a21061c5a42bc4325a911bcc18169feaddbbf.tar.xz |
Add Asn1Encodable.EncodeTo methods
Diffstat (limited to 'crypto/src/asn1/DERSequenceGenerator.cs')
-rw-r--r-- | crypto/src/asn1/DERSequenceGenerator.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/crypto/src/asn1/DERSequenceGenerator.cs b/crypto/src/asn1/DERSequenceGenerator.cs index d5c8a7a64..12c978508 100644 --- a/crypto/src/asn1/DERSequenceGenerator.cs +++ b/crypto/src/asn1/DERSequenceGenerator.cs @@ -21,16 +21,14 @@ namespace Org.BouncyCastle.Asn1 { } - public override void AddObject( - Asn1Encodable obj) + public override void AddObject(Asn1Encodable obj) { - Asn1OutputStream.Create(_bOut, Asn1Encodable.Der).WriteObject(obj); + obj.EncodeTo(_bOut, Asn1Encodable.Der); } - public override void AddObject( - Asn1Object obj) + public override void AddObject(Asn1Object obj) { - Asn1OutputStream.Create(_bOut, Asn1Encodable.Der).WriteObject(obj); + obj.EncodeTo(_bOut, Asn1Encodable.Der); } public override Stream GetRawOutputStream() |