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/DerBitString.cs | |
parent | Perf. opts. (diff) | |
download | BouncyCastle.NET-ed25519-2ee089e648a2aefe6d84244855b5c923b1496881.tar.xz |
Add BitString parsers
Diffstat (limited to 'crypto/src/asn1/DerBitString.cs')
-rw-r--r-- | crypto/src/asn1/DerBitString.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/src/asn1/DerBitString.cs b/crypto/src/asn1/DerBitString.cs index d3836b740..2b1ff3354 100644 --- a/crypto/src/asn1/DerBitString.cs +++ b/crypto/src/asn1/DerBitString.cs @@ -359,7 +359,7 @@ namespace Org.BouncyCastle.Asn1 byte finalOctet = contents[length - 1]; if (finalOctet != (byte)(finalOctet & (0xFF << padBits))) - return new BerBitString(contents, false); + return new DLBitString(contents, false); } return new DerBitString(contents, false); |