The CBOR a group chat message uses #
Definite-length unsigned integers, byte strings, text strings and maps, as Python's cbor2 writes
them: each header in its shortest form. Reading also skips any other well-formed item, so that a
field this client does not interpret can be passed over or kept as it came. Every function here is
total, so what is proved of it holds of what runs.
n as k bytes, most significant first.
Equations
Instances For
The number big-endian bytes spell.
Equations
- Cryptlib.Protocols.GroupComm.GroupChatKatzenqt1.Member.Cbor.fromBE l = List.foldl (fun (n : Nat) (b : UInt8) => n * 256 + b.toNat) 0 l
Instances For
The header of an item of major type major with argument n, in its shortest form.
Equations
- One or more equations did not get rendered due to their size.
Instances For
An item's major type, its argument, and what follows the header. Indefinite lengths and the reserved additional information values are refused.
Equations
- One or more equations did not get rendered due to their size.
- Cryptlib.Protocols.GroupComm.GroupChatKatzenqt1.Member.Cbor.readHeader [] = none
Instances For
Equations
Instances For
Pass over count well-formed items. fuel bounds the items visited; one per byte of input
is always enough, since every item takes at least one byte.
Equations
- One or more equations did not get rendered due to their size.
- Cryptlib.Protocols.GroupComm.GroupChatKatzenqt1.Member.Cbor.skipItems x✝¹ 0 x✝ = some x✝
- Cryptlib.Protocols.GroupComm.GroupChatKatzenqt1.Member.Cbor.skipItems 0 n.succ x✝ = none