summary refs log tree commit diff
path: root/crypto/src/asn1/Asn1Tags.cs
blob: 5ae99b45b75739e4c7a070650e1395f30e40fb29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
using System;

namespace Org.BouncyCastle.Asn1
{
    public class Asn1Tags
    {
        // 0x00: Reserved for use by the encoding rules
        public const int Boolean = 0x01;
        public const int Integer = 0x02;
        public const int BitString = 0x03;
        public const int OctetString = 0x04;
        public const int Null = 0x05;
        public const int ObjectIdentifier = 0x06;
        public const int ObjectDescriptor = 0x07;
        public const int External = 0x08;
        public const int Real = 0x09;
        public const int Enumerated = 0x0a;
        public const int EmbeddedPdv = 0x0b;
        public const int Utf8String = 0x0c;
        public const int RelativeOid = 0x0d;
        public const int Time = 0x0e;
        // 0x0f: Reserved for future editions of this Recommendation | International Standard
        public const int Sequence = 0x10;
        public const int SequenceOf = 0x10; // for completeness
        public const int Set = 0x11;
        public const int SetOf = 0x11; // for completeness
        public const int NumericString = 0x12;
        public const int PrintableString = 0x13;
        public const int T61String = 0x14;
        public const int VideotexString = 0x15;
        public const int IA5String = 0x16;
        public const int UtcTime = 0x17;
        public const int GeneralizedTime = 0x18;
        public const int GraphicString = 0x19;
        public const int VisibleString = 0x1a;
        public const int GeneralString = 0x1b;
        public const int UniversalString = 0x1c;
        public const int UnrestrictedString = 0x1d;
        public const int BmpString = 0x1e;
        public const int Date = 0x1f;
        public const int TimeOfDay = 0x20;
        public const int DateTime = 0x21;
        public const int Duration = 0x22;
        public const int OidIri = 0x23;
        public const int RelativeOidIri = 0x24;
        // 0x25..: Reserved for addenda to this Recommendation | International Standard

        public const int Constructed = 0x20;

        public const int Universal = 0x00;
        public const int Application = 0x40;
        public const int ContextSpecific = 0x80;
        public const int Private = 0xC0;

        public const int Flags = 0xE0;
    }
}