Skip to main content

Module encoding

Module encoding 

Source
Expand description

Encoding utilities: LEB128, length-value concatenation, and ordered concatenation.

These implement the encoding functions specified in draft-irtf-cfrg-cpace.

Functionsยง

leb128_encode
Encode a usize value using unsigned LEB128 encoding.
lv_cat
Length-value concatenation: concatenate prepend_len(arg) for each argument.
o_cat
Ordered concatenation of two byte slices.
prepend_len
Prepend the LEB128-encoded length of data to data.