diff options
Diffstat (limited to 'crypto/src/asn1/DERSetGenerator.cs')
-rw-r--r-- | crypto/src/asn1/DERSetGenerator.cs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/crypto/src/asn1/DERSetGenerator.cs b/crypto/src/asn1/DERSetGenerator.cs index 6b4d03eec..677241798 100644 --- a/crypto/src/asn1/DERSetGenerator.cs +++ b/crypto/src/asn1/DERSetGenerator.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() |