diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-22 15:22:28 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-11-22 15:22:28 +0700 |
commit | 2ee089e648a2aefe6d84244855b5c923b1496881 (patch) | |
tree | 89866bac74edd42edba77b26e0bb0b0dfa6aa337 /crypto/src/asn1/DLSequence.cs | |
parent | Perf. opts. (diff) | |
download | BouncyCastle.NET-ed25519-2ee089e648a2aefe6d84244855b5c923b1496881.tar.xz |
Add BitString parsers
Diffstat (limited to 'crypto/src/asn1/DLSequence.cs')
-rw-r--r-- | crypto/src/asn1/DLSequence.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crypto/src/asn1/DLSequence.cs b/crypto/src/asn1/DLSequence.cs index 8cf8d5bcb..b3c21ece5 100644 --- a/crypto/src/asn1/DLSequence.cs +++ b/crypto/src/asn1/DLSequence.cs @@ -64,6 +64,17 @@ namespace Org.BouncyCastle.Asn1 Asn1OutputStream.GetContentsEncodings(encoding, elements)); } + internal override DerBitString ToAsn1BitString() + { + return new DLBitString(BerBitString.FlattenBitStrings(GetConstructedBitStrings()), false); + } + + // TODO[asn1] DLExternal + //internal override DerExternal ToAsn1External() + //{ + // return new DLExternal(this); + //} + internal override Asn1Set ToAsn1Set() { return new DLSet(false, elements); |