diff options
Diffstat (limited to 'crypto/src/asn1/BerSequence.cs')
-rw-r--r-- | crypto/src/asn1/BerSequence.cs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crypto/src/asn1/BerSequence.cs b/crypto/src/asn1/BerSequence.cs index 1f09ecada..b8ef12dd0 100644 --- a/crypto/src/asn1/BerSequence.cs +++ b/crypto/src/asn1/BerSequence.cs @@ -46,10 +46,7 @@ namespace Org.BouncyCastle.Asn1 asn1Out.WriteByte(Asn1Tags.Sequence | Asn1Tags.Constructed); asn1Out.WriteByte(0x80); - foreach (Asn1Encodable o in this) - { - o.ToAsn1Object().Encode(asn1Out); - } + asn1Out.WriteElements(elements); asn1Out.WriteByte(0x00); asn1Out.WriteByte(0x00); |