JonathanWilbur / asn1-ts

ASN.1 TypeScript library, including codecs for Basic Encoding Rules (BER) and Distinguished Encoding Rules (DER).
MIT License
32 stars 6 forks source link

Incorrect Tag Class Numbers #4

Closed JonathanWilbur closed 5 years ago

JonathanWilbur commented 5 years ago

I created the ASN1TagClass enum with an incorrect mapping of names to values. Notice that I accidentally skipped 2 below:

https://github.com/JonathanWilbur/asn1-ts/blob/b7502f2c6e7f07c5f930c00d04bd4fd1984b6075/source/values.ts#L6-L12

This resulted in context-specific tags being encoded as PRIVATE tag class, and PRIVATE tag class being encoded as UNIVERSAL.