Marmos
v juptune
v asn1
v lang
v ast
v Classes
v Enums
v ir
v parser
v Enums
v Structs
v core
v crypto
v keyexchange
v memory
v data
v alphabet
v buffer
v json
v builder
v parser
v Enums
v Structs
v serialise
v Structs
v Templates
v pem
v Enums
v Structs

Enums Asn1DecodeError

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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
module juptune.asn1.decode.bcd.encoding;

enum Asn1DecodeError : int
{
    ///
    none = 0, 
    /// Ran out of bytes. 
    eof = 1, 
    /// Functionality not implemented yet TODO: I need to replace some asserts with this. 
    notImplemented = 2, 
    /// Identifier tag has too many bytes. 
    identifierTagTooLong = 3, 
    /// Identifer violates the spec in some way. 
    identifierTagInvalidEncoding = 4, 
    /// Content length uses a reserved value. 
    componentLengthReserved = 5, 
    /// Content length uses the indefinite form under DER, which is not allowed. 
    componentLengthIndefiniteUnderDer = 6, 
    /// Content length violates a DER-specific constraint. 
    componentLengthInvalidDerEncoding = 7, 
    /// Content length is more than 64-bits, so can't be represented natively. 
    componentLengthOver64Bits = 8, 
    /// Boolean violates the spec in some way. 
    booleanInvalidEncoding = 9, 
    /// Boolean violates a DER-specific constraint. 
    booleanInvalidDerEncoding = 10, 
    /// Boolean is marked as constructed. 
    booleanIsConstructed = 11, 
    /// Integer violates the spec in some way. 
    integerInvalidEncoding = 12, 
    /// Integer violates a DER-specific constraint. 
    integerInvalidDerEncoding = 13, 
    /// Integer is too large to be represented by a native D integral type. 
    integerOverBits = 14, 
    /// Integer is marked as constructed. 
    integerIsConstructed = 15, 
    /// Bit string is marked as constructed under DER, which is not allowed. 
    bitstringIsConstructedUnderDer = 16, 
    /// Bit string violates the spec in some way. 
    bitstringInvalidEncoding = 17, 
    /// Bit string violates a DER-specific constraint. 
    bitstringInvalidDerEncoding = 18, 
    /// Real is marked as constructed. 
    realIsConstructed = 19, 
    /// Real violates the spec in some way. 
    realInvalidEncoding = 20, 
    /// Real violates a DER-specific constraint. 
    realInvalidDerEncoding = 21, 
    /// Real contains an unrecognised decimal encoding. 
    realUnsupportedDecimalEncoding = 22, 
    /// Real contains an unrecognised special value. 
    realUnsupportedSpecialEncoding = 23, 
    /// Octet string is marked as constructed under DER, which is not allowed. 
    octetstringIsConstructedUnderDer = 24, 
    /// Null is marked as constructed under DER, which is not allowed. 
    nullIsConstructed = 25, 
    /// Null contains content bytes. 
    nullHasContentBytes = 26, 
    /// Generic construction is marked as primitive. 
    constructionIsPrimitive = 27, 
    /// Generic primitive is marked as constructed. 
    primitiveIsConstructed = 28, 
    /// Set of is marked as primitive. 
    setOfIsPrimitive = 29, 
    /// A DER-encoded SET OF is not properly encoded - elements must be encoded in 'shortest' order, but wasn't. 
    setOfDerIsUnordered = 30, 
    /// OID violates the spec in some way. 
    oidInvalidEncoding = 31, 
    /// OID is marked as constructed. 
    oidIsConstructed = 32, 
    /// A UTF8String was marked as constructed under DER, which is not allowed. 
    utf8StringIsConstructedUnderDer = 33, 
    /// A PrintableString was marked as constructed under DER, which is not allowed. 
    printableStringIsConstructedUnderDer = 34, 
    /// A PrintableString contains characters that are not allowed. 
    printableStringHasInvalidChars = 35, 
    /// A UTCTime was marked as constructed under DER, which is not allowed. 
    utcTimeIsConstructedUnderDer = 36, 
    /// A UTCTime literal is not the right size. 
    utcTimeIsWrongSize = 37, 
    /// A UTCTime literal was given a timezone under DER, which is not allowed. 
    utcTimeHasTimezoneUnderDer = 38, 
    /// A UTCTime literal is invalid for some non-specific reason (e.g. invalid characters). 
    utcTimeInvalidLiteral = 39, 
    /// An identifier has a class that was unexpected for the decoding type. 
    identifierHasInvalidClass = 40, 
    /// An identifier has a tag value that was unexpected for the decoding type. 
    identifierHasInvalidTag = 41, 
    /// An CHOICE type is unable to select a value while decoding the data stream. 
    choiceHasNoMatch = 42, 
    /// A SEQUENCE type is missing a non-optional field. 
    sequenceMissingField = 43, 
    /// A non-extensible SEQUENCE type has unread content bytes after attempted decoding of all known fields. 
    sequenceHasExtraData = 44, 
    /// A SET type is missing a non-optional field. 
    setMissingField = 45, 
    /// A non-extensible SET type has unread content bytes after attempted decoding of all known fields. 
    setHasExtraData = 46, 
    /// A value was decoded that did not match a constraint from the source schema 
    constraintFailed = 47
}

Documentation

A Resulterror enum.

ON THIS PAGE