18 KiB
18 KiB
module x.encoding.asn1
Contents
- Constants
- decode
- decode_with_field_options
- decode_with_options
- encode
- encode_with_field_options
- encode_with_options
- encoded_len
- make_payload
- new_key_default
- AnyDefinedBy.new
- ApplicationElement.from_element
- ApplicationElement.new
- BitString.from_binary_string
- BitString.new
- Boolean.new
- Boolean.parse
- Choice.new
- ContextElement.explicit_context
- ContextElement.from_element
- ContextElement.implicit_context
- ContextElement.new
- Element.from_object
- ElementList.from_bytes
- Enumerated.new
- FieldOptions.from_attrs
- FieldOptions.from_string
- GeneralString.new
- GeneralizedTime.from_time
- GeneralizedTime.new
- IA5String.new
- Integer.from_bigint
- Integer.from_hex
- Integer.from_i64
- Integer.from_int
- Integer.from_string
- Length.from_bytes
- Length.new
- NumericString.new
- ObjectIdentifier.from_ints
- ObjectIdentifier.new
- OctetString.from_hexstring
- OctetString.new
- Optional.new
- Parser.new
- PrintableString.new
- PrivateELement.from_element
- PrivateELement.new
- RawElement.from_element
- RawElement.new
- Sequence.from_list
- Sequence.new
- SequenceOf.from_list
- SequenceOf.new
- Set.from_list
- Set.new
- SetOf.from_list
- SetOf.new
- Tag.from_bytes
- Tag.new
- UtcTime.from_time
- UtcTime.new
- Utf8String.from_bytes
- Utf8String.new
- VisibleString.new
- Element
- ElementList
- KeyDefault
- Length
- SequenceOf[T]
- SetOf[T]
- EncodingRule
- TagClass
- TagType
- TaggedMode
- AnyDefinedBy
- ApplicationElement
- BitString
- Boolean
- Choice
- ContextElement
- Enumerated
- FieldOptions
- GeneralString
- GeneralizedTime
- IA5String
- Integer
- Null
- NumericString
- ObjectIdentifier
- OctetString
- Optional
- Parser
- PrintableString
- PrivateELement
- RawElement
- Sequence
- SequenceOf
- Set
- SetOf
- Tag
- UtcTime
- Utf8String
- VisibleString
Constants
decode
decode_with_field_options
decode_with_options
encode
encode_with_field_options
encode_with_options
encoded_len
make_payload
new_key_default
AnyDefinedBy.new
ApplicationElement.from_element
ApplicationElement.new
BitString.from_binary_string
Example
import x.encoding.asn1
bs := asn1.BitString.from_binary_string('011010001')!
assert (bs.pad == 7 && bs.data == [u8(0x68), 0x80]) == true