diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-03 16:12:13 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2013-11-03 16:12:13 +0700 |
commit | e346df986347cead043ca0fe952447bd484a5db3 (patch) | |
tree | 4738910f42ae60eb9b58aa618daabaed1fc5354e /crypto/src/asn1/Asn1InputStream.cs | |
parent | Add Poly1305 contributors entry (diff) | |
download | BouncyCastle.NET-ed25519-e346df986347cead043ca0fe952447bd484a5db3.tar.xz |
Port from Java of improvements to DerBoolean and DerEnumerated
Diffstat (limited to 'crypto/src/asn1/Asn1InputStream.cs')
-rw-r--r-- | crypto/src/asn1/Asn1InputStream.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/Asn1InputStream.cs b/crypto/src/asn1/Asn1InputStream.cs index a72049b56..5d5590655 100644 --- a/crypto/src/asn1/Asn1InputStream.cs +++ b/crypto/src/asn1/Asn1InputStream.cs @@ -319,9 +319,9 @@ namespace Org.BouncyCastle.Asn1 switch (tagNo) { case Asn1Tags.Boolean: - return new DerBoolean(GetBuffer(defIn, tmpBuffers)); + return DerBoolean.FromOctetString(GetBuffer(defIn, tmpBuffers)); case Asn1Tags.Enumerated: - return new DerEnumerated(GetBuffer(defIn, tmpBuffers)); + return DerEnumerated.FromOctetString(GetBuffer(defIn, tmpBuffers)); case Asn1Tags.ObjectIdentifier: return DerObjectIdentifier.FromOctetString(GetBuffer(defIn, tmpBuffers)); } |