proof_canon.bend checks
raw source on the hub · import 0xeb25eff332574f4f1d48668b83cdda30/proof_canon.bend as Proof_canon
Proofs for bend-osdev-asn1: DER encoding is unique. Under rules with the minimal-length check (which makes a1.head end in the canonical check, a1.canon) and without the indefinite form, a header read from octets xs says xs is the encoder's octets for the tag, form, contents and rest read (pc.head_prim, pc.head_def); so, by induction on the decoder's fuel, the elements decoded from xs encode back to xs (pc.dec_all, pc.dec_one), and can be encoded (no error).
16 imports
import Base import bend-osdev-bytes@0.1.0.0/bytes.bend as B import bend-osdev-bytes@0.1.0.0/LAWS.bend as BL import ./error.bend as E import ./number.bend as Nu import ./tag.bend as T import ./length.bend as L import ./node.bend as N import ./rules.bend as R import ./encode.bend as En import ./conform.bend as C import ./asn1.bend as A import ./proof_nat.bend as AN import ./proof_list.bend as AL import ./proof_u32.bend as AU import ./proof_within.bend as PW
Types
type PcHd source · line 27 · raw
Data
What a header says of its octets: they are the encoder's, and the element can be encoded
PcHd@bytes:List<&2, U32> -> @ok:Bool -> PcHd
type PcPk source · line 42 · raw
Data
What a decode says: one element (or more) and the octets after them encode back to the input, without error
PcPk@bytes:List<&2, U32> -> @err:Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error> -> PcPk
type PcPk3 source · line 45 · raw
Data
PcPk3@bytes:List<&2, U32> -> @err:Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error> -> @rest:List<&2, U32> -> PcPk3
Definitions
def pc.hdb source · line 30 · raw
@h:PcHd -> List<&2, U32>
def pc.hdo source · line 35 · raw
@h:PcHd -> Bool
def pc.pb source · line 48 · raw
@p:PcPk -> List<&2, U32>
def pc.pe source · line 53 · raw
@p:PcPk -> Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error>
def pc.p3b source · line 58 · raw
@p:PcPk3 -> List<&2, U32>
def pc.p3e source · line 63 · raw
@p:PcPk3 -> Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error>
def pc.p3r source · line 68 · raw
@p:PcPk3 -> List<&2, U32>
def pc.goodO source · line 73 · raw
@res:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @xs:List<&2, U32> -> Type
def pc.goodA source · line 80 · raw
@res:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @xs:List<&2, U32> -> Type
def pc.notP source · line 89 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> Type
def pc.notD source · line 104 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> Type
def pc.notE source · line 119 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> Type
def pc.notI source · line 134 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> Type
def pc.htag source · line 149 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag
def pc.hcs source · line 164 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> List<&2, U32>
def pc.hrest source · line 179 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> List<&2, U32>
def pc.tcls source · line 194 · raw
@t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class
def pc.tnum source · line 199 · raw
@t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> Nat
def pc.err_nprim source · line 204 · raw
@-er:0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HErr{er} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.end_nprim source · line 208 · raw
@-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.eoc_nprim source · line 212 · raw
@-r0:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEoc{r0} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.ind_nprim source · line 216 · raw
@-t0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @-r0:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HIndef{t0, r0} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.oth_nprim source · line 220 · raw
@-t0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @-cs0:List<&2, U32> -> @-r0:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{t0, cs0, r0} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.err_ndef source · line 224 · raw
@-er:0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HErr{er} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.end_ndef source · line 228 · raw
@-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.eoc_ndef source · line 232 · raw
@-r0:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEoc{r0} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.ind_ndef source · line 236 · raw
@-t0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @-r0:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HIndef{t0, r0} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.oth_ndef source · line 240 · raw
@-t0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @-cs0:List<&2, U32> -> @-r0:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{t0, cs0, r0} == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.cmk_prim source · line 245 · raw
@ok:Bool -> @+c0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n0:Nat -> @+l:Nat -> @+xs:List<&2, U32> -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+eok:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.ok(c0, False{}, n0, l, xs) == ok : Bool} -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.mk(ok, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c0, n0}, False{}, List.length(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.hdr(c0, False{}, n0, l)), l, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {PcHd{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest), Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs))))} == PcHd{xs, True{}} : PcHd}the canonical check passed: the octets are the encoder's
def pc.cmkx_prim source · line 292 · raw
@ok:Bool -> @+c0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n0:Nat -> @+k:Nat -> @+l:Nat -> @+xs:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.mk(ok, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c0, n0}, True{}, k, l, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.canon_prim source · line 300 · raw
@+xs:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon(xs, h) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {PcHd{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest), Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs))))} == PcHd{xs, True{}} : PcHd}a header that passed the canonical check
def pc.nend_prim source · line 317 · raw
@xs:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.nend(xs, h) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {h == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}
def pc.head_prim source · line 338 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+xs:List<&2, U32> -> @+hm:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.min_length(r) == True{} : Bool} -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HPrim{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {PcHd{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest), Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs))))} == PcHd{xs, True{}} : PcHd}under the minimal-length rule, a header read says its octets are the encoder's octets
def pc.cmk_def source · line 345 · raw
@ok:Bool -> @+c0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n0:Nat -> @+l:Nat -> @+xs:List<&2, U32> -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+eok:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.ok(c0, True{}, n0, l, xs) == ok : Bool} -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.mk(ok, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c0, n0}, True{}, List.length(&2, U32, 0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.hdr(c0, True{}, n0, l)), l, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {PcHd{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest), Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs))))} == PcHd{xs, True{}} : PcHd}the canonical check passed: the octets are the encoder's
def pc.cmkx_def source · line 392 · raw
@ok:Bool -> @+c0:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n0:Nat -> @+k:Nat -> @+l:Nat -> @+xs:List<&2, U32> -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.mk(ok, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c0, n0}, False{}, k, l, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.canon_def source · line 400 · raw
@+xs:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon(xs, h) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {PcHd{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest), Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs))))} == PcHd{xs, True{}} : PcHd}a header that passed the canonical check
def pc.nend_def source · line 417 · raw
@xs:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @-c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @-n:Nat -> @-cs:List<&2, U32> -> @-rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.nend(xs, h) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {h == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head}
def pc.head_def source · line 438 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+xs:List<&2, U32> -> @+hm:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.min_length(r) == True{} : Bool} -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HDef{0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, cs, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {PcHd{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest), Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs))))} == PcHd{xs, True{}} : PcHd}under the minimal-length rule, a header read says its octets are the encoder's octets
def pc.nend_ne source · line 446 · raw
@+y:U32 -> @+t:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.nend(y <> t, h) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.end_inv source · line 468 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @xs:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HEnd{} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> {[] == xs : List<&2, U32>}the end of the input is read only from no octets
def pc.ni source · line 475 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> Bool
def pc.ioff_ni source · line 490 · raw
@h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> {pc.ni(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.indef_off(False{}, h)) == True{} : Bool}
def pc.cmk_ni source · line 505 · raw
@ok:Bool -> @+t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @cons:Bool -> @+k:Nat -> @+l:Nat -> @+xs:List<&2, U32> -> {pc.ni(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon.mk(ok, t, cons, k, l, xs)) == True{} : Bool}
def pc.canon_ni source · line 514 · raw
@+xs:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+hn:{pc.ni(h) == True{} : Bool} -> {pc.ni(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.canon(xs, h)) == True{} : Bool}
def pc.fin2_ni source · line 531 · raw
@m:Bool -> @+xs:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+hn:{pc.ni(h) == True{} : Bool} -> {pc.ni(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.fin2(m, xs, h)) == True{} : Bool}
def pc.nend_ni source · line 538 · raw
@xs:List<&2, U32> -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+hn:{pc.ni(h) == True{} : Bool} -> {pc.ni(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head.nend(xs, h)) == True{} : Bool}
def pc.head_ni source · line 558 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+xs:List<&2, U32> -> @+hi:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.indefinite(r) == False{} : Bool} -> {pc.ni(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, xs)) == True{} : Bool}without the indefinite form, no header is indefinite
def pc.head_indef source · line 563 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+xs:List<&2, U32> -> @+hi:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.indefinite(r) == False{} : Bool} -> @-t:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag -> @-rest:List<&2, U32> -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, xs) == 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1HIndef{t, rest} : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> Empty
def pc.fix_cs source · line 568 · raw
@+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+xs:List<&2, U32> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, cons, n, cs, rest) == xs : List<&2, U32>} -> @+hmask:{0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(xs) == xs : List<&2, U32>} -> {0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(cs) == cs : List<&2, U32>}
def pc.fix_rest source · line 576 · raw
@+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+cons:Bool -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest:List<&2, U32> -> @+xs:List<&2, U32> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, cons, n, cs, rest) == xs : List<&2, U32>} -> @+hmask:{0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(xs) == xs : List<&2, U32>} -> {0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(rest) == rest : List<&2, U32>}
def pc.moreA_prim source · line 587 · raw
@ok:Bool -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @b:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @+hmc:{0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(cs) == cs : List<&2, U32>} -> @hg:pc.goodA(b, rest1) -> pc.goodA(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.more(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_prim.pick(ok, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, 0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets.of_list(cs)), b), xs)
def pc.oneO_prim source · line 619 · raw
@ok:Bool -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, False{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @+hmc:{0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(cs) == cs : List<&2, U32>} -> pc.goodO(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.one(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_prim.pick(ok, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, 0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets.of_list(cs)), rest1), xs)
def pc.moreA_set source · line 642 · raw
@f2:Bool -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+items:List<&2, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node> -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @b:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @+hencs:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_list(items, []) == cs : List<&2, U32>} -> @+herr:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_err(items) == None{} : Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error>} -> @hg:pc.goodA(b, rest1) -> pc.goodA(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.more(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_cons.set(f2, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, items), b), xs)
def pc.moreA_form source · line 673 · raw
@f1:Bool -> @+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+items:List<&2, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node> -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @b:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @+hencs:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_list(items, []) == cs : List<&2, U32>} -> @+herr:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_err(items) == None{} : Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error>} -> @hg:pc.goodA(b, rest1) -> pc.goodA(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.more(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_cons.form(f1, r, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, items), b), xs)
def pc.moreA_cons source · line 680 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @inner:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @b:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @hin:pc.goodA(inner, cs) -> @hg:pc.goodA(b, rest1) -> pc.goodA(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.more(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_cons(r, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, inner), b), xs)
def pc.oneO_set source · line 691 · raw
@f2:Bool -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+items:List<&2, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node> -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @+hencs:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_list(items, []) == cs : List<&2, U32>} -> @+herr:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_err(items) == None{} : Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error>} -> pc.goodO(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.one(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_cons.set(f2, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, items), rest1), xs)
def pc.oneO_form source · line 710 · raw
@f1:Bool -> @+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+items:List<&2, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node> -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @+hencs:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_list(items, []) == cs : List<&2, U32>} -> @+herr:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_err(items) == None{} : Maybe<&2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error>} -> pc.goodO(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.one(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_cons.form(f1, r, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, items), rest1), xs)
def pc.oneO_cons source · line 717 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+c:0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Class -> @+n:Nat -> @+cs:List<&2, U32> -> @+rest1:List<&2, U32> -> @+xs:List<&2, U32> -> @inner:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @+hx:{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.tlv(c, True{}, n, cs, rest1) == xs : List<&2, U32>} -> @+hb:{Bool.and(Bool.not(0xeb25eff332574f4f1d48668b83cdda30/encode.a1.is_univ0(c, n)), Bool.and(0xeb25eff332574f4f1d48668b83cdda30/tag.a1.id_ok(n), 0xeb25eff332574f4f1d48668b83cdda30/length.a1.len_ok(List.length(&2, U32, cs)))) == True{} : Bool} -> @hin:pc.goodA(inner, cs) -> pc.goodO(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.one(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.mk_cons(r, 0xeb25eff332574f4f1d48668b83cdda30/tag.Asn1Tag{c, n}, inner), rest1), xs)
def pc.dec_all source · line 730 · raw
@f:Nat -> @+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+xs:List<&2, U32> -> @+eh:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, xs) == h : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> @+hmask:{0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(xs) == xs : List<&2, U32>} -> @+hm:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.min_length(r) == True{} : Bool} -> @+hi:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.indefinite(r) == False{} : Bool} -> pc.goodA(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.dec(f, r, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1All{}, h), xs)Decoding octets to their end: the elements encode back to the octets
def pc.dec_one source · line 767 · raw
@f:Nat -> @+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @h:0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head -> @+xs:List<&2, U32> -> @+eh:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.head(r, xs) == h : 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Head} -> @+hmask:{0x9df7f91779a4a1c215bfa96cd0864601/bytes.mask(xs) == xs : List<&2, U32>} -> @+hm:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.min_length(r) == True{} : Bool} -> @+hi:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.indefinite(r) == False{} : Bool} -> pc.goodO(0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.dec(f, r, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1One{}, h), xs)Decoding one element: it, and the octets after it, encode back to the octets
def pc.ndisc source · line 802 · raw
@r:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node> -> Type
def pc.fd source · line 809 · raw
@-x:0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error -> @-y:0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node -> @e:{Fail{x} == Done{y} : Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node>} -> Empty
def pc.dval source · line 813 · raw
@z:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node> -> @d:0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node -> 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node
def pc.top_good source · line 820 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @res:Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/asn1.A1Out> -> @-n:0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node -> @+xs:List<&2, U32> -> @+ht:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.trailing(r) == False{} : Bool} -> @hg:pc.goodO(res, xs) -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.a1.top(r, res) == Done{n} : Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node>} -> {PcPk{0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_list([n], []), 0xeb25eff332574f4f1d48668b83cdda30/encode.a1.enc_err([n])} == PcPk{xs, None{}} : PcPk}
def pc.ed source · line 836 · raw
@+r:0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules -> @+hm:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.min_length(r) == True{} : Bool} -> @+hi:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.indefinite(r) == False{} : Bool} -> @+ht:{0xeb25eff332574f4f1d48668b83cdda30/rules.Asn1Rules.trailing(r) == False{} : Bool} -> @+b:0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets -> @+n:0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node -> @+e:{0xeb25eff332574f4f1d48668b83cdda30/asn1.Asn1.decode(r, b) == Done{n} : Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0xeb25eff332574f4f1d48668b83cdda30/node.Asn1Node>} -> {0xeb25eff332574f4f1d48668b83cdda30/encode.Asn1.encode(n) == Done{b} : Result<&2, &2, 0xeb25eff332574f4f1d48668b83cdda30/error.Asn1Error, 0x9df7f91779a4a1c215bfa96cd0864601/bytes.Octets>}encode after decode