Files
herolib/vdocs/x.encoding.asn1.md
2025-02-07 12:07:32 +03:00

18 KiB

module x.encoding.asn1

Contents

Constants

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

[Return to contents]

decode

[Return to contents]

decode_with_field_options

[Return to contents]

decode_with_options

[Return to contents]

encode

[Return to contents]

encode_with_field_options

[Return to contents]

encode_with_options

[Return to contents]

encoded_len

[Return to contents]

make_payload

[Return to contents]

new_key_default

[Return to contents]

AnyDefinedBy.new

[Return to contents]

ApplicationElement.from_element

[Return to contents]

ApplicationElement.new

[Return to contents]

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

[Return to contents]

BitString.new

[Return to contents]

Boolean.new

[Return to contents]

Boolean.parse

[Return to contents]

Choice.new

[Return to contents]

ContextElement.explicit_context

[Return to contents]

ContextElement.from_element

[Return to contents]

ContextElement.implicit_context

[Return to contents]

ContextElement.new

[Return to contents]

Element.from_object

[Return to contents]

ElementList.from_bytes

[Return to contents]

Enumerated.new

[Return to contents]

FieldOptions.from_attrs

[Return to contents]

FieldOptions.from_string

[Return to contents]

GeneralString.new

[Return to contents]

GeneralizedTime.from_time

[Return to contents]

GeneralizedTime.new

[Return to contents]

IA5String.new

[Return to contents]

Integer.from_bigint

[Return to contents]

Integer.from_hex

[Return to contents]

Integer.from_i64

[Return to contents]

Integer.from_int

[Return to contents]

Integer.from_string

[Return to contents]

Length.from_bytes

[Return to contents]

Length.new

[Return to contents]

NumericString.new

[Return to contents]

ObjectIdentifier.from_ints

[Return to contents]

ObjectIdentifier.new

[Return to contents]

OctetString.from_hexstring

[Return to contents]

OctetString.new

[Return to contents]

Optional.new

[Return to contents]

Parser.new

[Return to contents]

PrintableString.new

[Return to contents]

PrivateELement.from_element

[Return to contents]

PrivateELement.new

[Return to contents]

RawElement.from_element

[Return to contents]

RawElement.new

[Return to contents]

Sequence.from_list

[Return to contents]

Sequence.new

[Return to contents]

SequenceOf.from_list

[Return to contents]

SequenceOf.new

[Return to contents]

Set.from_list

[Return to contents]

Set.new

[Return to contents]

SetOf.from_list

[Return to contents]

SetOf.new

[Return to contents]

Tag.from_bytes

[Return to contents]

Tag.new

[Return to contents]

UtcTime.from_time

[Return to contents]

UtcTime.new

[Return to contents]

Utf8String.from_bytes

[Return to contents]

Utf8String.new

[Return to contents]

VisibleString.new

[Return to contents]

Element

[Return to contents]

encoded_len

[Return to contents]

equal

[Return to contents]

into_object

[Return to contents]

length

[Return to contents]

set_default_value

[Return to contents]

unwrap_with_field_options

[Return to contents]

unwrap_with_options

[Return to contents]

ElementList

[Return to contents]

payload

[Return to contents]

encoded_len

[Return to contents]

KeyDefault

[Return to contents]

Length

[Return to contents]

encode

[Return to contents]

SequenceOf[T]

tag

[Return to contents]

payload

[Return to contents]

fields

[Return to contents]

SetOf[T]

tag

[Return to contents]

fields

[Return to contents]

payload

[Return to contents]

add_element

[Return to contents]

EncodingRule

[Return to contents]

TagClass

[Return to contents]

TagType

[Return to contents]

TaggedMode

[Return to contents]

AnyDefinedBy

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

ApplicationElement

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

BitString

[Return to contents]

data

[Return to contents]

pad

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

Boolean

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

value

[Return to contents]

Choice

[Return to contents]

set_size

[Return to contents]

choose

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

ContextElement

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

Enumerated

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

FieldOptions

[Return to contents]

install_default

[Return to contents]

GeneralString

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

GeneralizedTime

[Return to contents]

into_utctime

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

IA5String

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

Integer

[Return to contents]

hex

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

equal

[Return to contents]

as_bigint

[Return to contents]

as_i64

[Return to contents]

Null

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

NumericString

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

ObjectIdentifier

[Return to contents]

value

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

equal

[Return to contents]

OctetString

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

Optional

[Return to contents]

set_present_bit

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

encode

[Return to contents]

into_element

[Return to contents]

into_object

[Return to contents]

Parser

[Return to contents]

reset

[Return to contents]

peek_tag

[Return to contents]

read_tag

[Return to contents]

read_length

[Return to contents]

read_bytes

[Return to contents]

read_tlv

[Return to contents]

finish

[Return to contents]

is_empty

[Return to contents]

PrintableString

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

PrivateELement

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

RawElement

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

set_mode

[Return to contents]

set_inner_tag

[Return to contents]

inner_tag

[Return to contents]

inner_element

[Return to contents]

Sequence

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

encoded_len

[Return to contents]

fields

[Return to contents]

set_size

[Return to contents]

add_element

[Return to contents]

is_sequence_of

[Return to contents]

into_sequence_of

[Return to contents]

SequenceOf

[Return to contents]

Set

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

fields

[Return to contents]

add_element

[Return to contents]

set_size

[Return to contents]

SetOf

[Return to contents]

Tag

[Return to contents]

tag_class

[Return to contents]

is_constructed

[Return to contents]

tag_number

[Return to contents]

encode

[Return to contents]

equal

[Return to contents]

tag_size

[Return to contents]

universal_tag_type

[Return to contents]

UtcTime

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

into_utctime

[Return to contents]

Utf8String

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

VisibleString

[Return to contents]

tag

[Return to contents]

payload

[Return to contents]

Powered by vdoc. Generated on: 7 Feb 2025 12:06:56