Module Standards.ASN1.Types
- Description
Encodes various asn.1 objects according to the Distinguished Encoding Rules (DER)
- Variable
TaggedType0
Variable TaggedType1
Variable TaggedType2
Variable TaggedType3
MetaExplicit
Standards.ASN1.Types.TaggedType0
MetaExplicit
Standards.ASN1.Types.TaggedType1
MetaExplicit
Standards.ASN1.Types.TaggedType2
MetaExplicit
Standards.ASN1.Types.TaggedType3- Description
Some common explicit tags for convenience.
These are typically used to indicate which of several optional fields are present.
- Example
ECPrivateKey ::= SEQUENCE { version INTEGER { ecPrivkeyVer1(1) } (ecPrivkeyVer1), privateKey OCTET STRING, parameters [0] ECParameters {{ NamedCurve }} OPTIONAL, publicKey [1] BIT STRING OPTIONAL }
The presence of the fields parameters and publicKey above are indicated with TaggedType0 and TaggedType1 respectively.