diff options
author | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-10-15 15:37:54 +0700 |
---|---|---|
committer | Peter Dettman <peter.dettman@bouncycastle.org> | 2021-10-15 15:37:54 +0700 |
commit | e9e00f6c7536fc7724781cc64b0d906bf7e67e1d (patch) | |
tree | c65aa1b21e9c03a100a2c83cd36c3ff63809c365 /crypto/src/asn1/DERGenerator.cs | |
parent | Refactoring (diff) | |
download | BouncyCastle.NET-ed25519-e9e00f6c7536fc7724781cc64b0d906bf7e67e1d.tar.xz |
Replace Obsolete tag
Diffstat (limited to 'crypto/src/asn1/DERGenerator.cs')
-rw-r--r-- | crypto/src/asn1/DERGenerator.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/src/asn1/DERGenerator.cs b/crypto/src/asn1/DERGenerator.cs index aab40fefa..387a2c5f8 100644 --- a/crypto/src/asn1/DERGenerator.cs +++ b/crypto/src/asn1/DERGenerator.cs @@ -71,11 +71,11 @@ namespace Org.BouncyCastle.Asn1 { if (_tagged) { - int tagNum = _tagNo | Asn1Tags.Tagged; + int tagNum = _tagNo | Asn1Tags.ContextSpecific; if (_isExplicit) { - int newTag = _tagNo | Asn1Tags.Constructed | Asn1Tags.Tagged; + int newTag = _tagNo | Asn1Tags.Constructed | Asn1Tags.ContextSpecific; MemoryStream bOut = new MemoryStream(); WriteDerEncoded(bOut, tag, bytes); WriteDerEncoded(Out, newTag, bOut.ToArray()); |