Click here to Skip to main content
15,882,055 members
Articles / ASN.1
Reference

Complete (so far) Enumeration of ASN.1 TAGs

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
9 Jul 2021CPOL 32K   2   1
I found even the official documented lists of ASN.1 TAGs incomplete. So after scrounging around I was able to piece together a complete list (so far).

ASN.1, an old standard and though prevalent, does not seem to be any longer changing.

public enum TAG : byte
{
    BOOLEAN = 0x01,
    INTEGER = 0x02,
    BIT_STRING = 0x03,
    OCTET_STRING = 0x04,
    NULL_TAG = 0x05,
    OBJECT_IDENTIFIER = 0x06,  //a.k.a. OID
    OBJECT_DESCRIPTOR = 0x07,  //a.k.a. OID Descriptor
    EXTERNAL = 0x08,
    REAL = 0x09,
    ENUMERATED = 0x0a,
    EMBEDDED_PDV = 0x0b,
	UTF8_STRING = 0x0c,
    RELATIVE_OID = 0x0d,
    TIME = 0x0e,
    // Reserved 0x0f,
    SEQUENCE = 0x10,
    SET = 0x11,
    NUMERIC_STRING = 0x12,
    PRINTABLE_STRING = 0x13,
    T61_STRING = 0x14,
    VIDEOTEXT_STRING = 0x15,
    IA5_STRING = 0x16,
    UTC_TIME = 0x17,
    GENERALIZED_TIME = 0x18,
    GRAPHIC_STRING = 0x19,
    VISIBLE_STRING = 0x1a,
    GENERAL_STRING = 0x1b,
    UNIVERSAL_STRING = 0x1c,
    CHARACTER_STRING = 0x1d,
    BMP_STRING = 0x1e,
    DATE = 0x1f,
    TIME_OF_DAY = 0x20,
    DATE_TIME = 0x21,
    DURATION = 0x22,
    I18_OID = 0x23,  // Internationalized OID
    REL_I18_OID = 0x24  // Internationalized Relative OID
    // Reserved 0x25 and above
};

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
United States United States
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions

 
Generalonly 31 Pin
l4xog14-Jul-22 16:21
l4xog14-Jul-22 16:21 
QuestionMessage Closed Pin
9-Jul-21 23:20
professionalwhiteruntz whiteruntz9-Jul-21 23:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.