1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 20:37:34 +00:00

LibCrypto: Add missing ASN1 tag kinds

This commit is contained in:
stelar7 2023-04-03 18:50:57 +02:00 committed by Ali Mohammad Pur
parent 6163f607c0
commit 8273fc230c
3 changed files with 90 additions and 17 deletions

View file

@ -12,22 +12,45 @@
namespace Crypto::ASN1 {
// ITU-T X.680, section 8, table 1
enum class Kind : u8 {
Eol,
Eol = 0x00,
Boolean = 0x01,
Integer = 0x02,
BitString = 0x03,
OctetString = 0x04,
Null = 0x05,
ObjectIdentifier = 0x06,
IA5String = 0x16,
PrintableString = 0x13,
Utf8String = 0x0c,
UTCTime = 0x017,
GeneralizedTime = 0x018,
ObjectDescriptor = 0x07,
External = 0x08,
Real = 0x09,
Enumerated = 0x0A,
EmbeddedPdv = 0x0B,
Utf8String = 0x0C,
RelativeOid = 0x0D,
Time = 0x0E,
Reserved = 0x0F,
Sequence = 0x10,
Set = 0x11,
// Choice = ??,
NumericString = 0x12,
PrintableString = 0x13,
T61String = 0x14,
VideotexString = 0x15,
IA5String = 0x16,
UTCTime = 0x017,
GeneralizedTime = 0x18,
GraphicString = 0x19,
VisibleString = 0x1A,
GeneralString = 0x1B,
UniversalString = 0x1C,
CharacterString = 0x1D,
BMPString = 0x1E,
Date = 0x1F,
TimeOfDay = 0x20,
DateTime = 0x21,
Duration = 0x22,
OidIri = 0x23,
RelativeOidIri = 0x24,
};
enum class Class : u8 {