diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-06 23:39:42 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-06 23:39:42 +0700 |
commit | f6f0935f51e33f1ccd01fb4d167abc23a4c9b1d1 (patch) | |
tree | c1d42127be4455f042e895ac9d0b12d3d98d9460 /crypto/src/asn1/BerSequence.cs | |
parent | Trim the stack trace (diff) | |
download | BouncyCastle.NET-ed25519-f6f0935f51e33f1ccd01fb4d167abc23a4c9b1d1.tar.xz |
Rewrite DerExternal
Diffstat (limited to 'crypto/src/asn1/BerSequence.cs')
-rw-r--r-- | crypto/src/asn1/BerSequence.cs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/crypto/src/asn1/BerSequence.cs b/crypto/src/asn1/BerSequence.cs index 068f0a2a8..1795025f2 100644 --- a/crypto/src/asn1/BerSequence.cs +++ b/crypto/src/asn1/BerSequence.cs @@ -43,6 +43,11 @@ namespace Org.BouncyCastle.Asn1 { } + internal BerSequence(Asn1Encodable[] elements, bool clone) + : base(elements, clone) + { + } + internal override int EncodedLength(bool withID) { throw Platform.CreateNotImplementedException("BerSequence.EncodedLength"); @@ -59,5 +64,12 @@ namespace Org.BouncyCastle.Asn1 base.Encode(asn1Out, withID); } } - } + + internal override DerExternal ToAsn1External() + { + // TODO There is currently no BerExternal class (or ToDLObject/ToDerObject) + //return ((Asn1Sequence)ToDLObject()).ToAsn1External(); + return new DerSequence(elements, false).ToAsn1External(); + } + } } |