Module uint

Module uint 

Source
Expand description

Unsigned integer decoders/encoders.

Re-exportsยง

pub use allocating::Uint;

Modulesยง

allocating ๐Ÿ”’

Macrosยง

impl_encoding_traits ๐Ÿ”’

Structsยง

UintRef
Unsigned arbitrary precision ASN.1 INTEGER reference type.

Functionsยง

decode_to_array ๐Ÿ”’
Decode an unsigned integer into a byte array of the requested size containing a big endian integer.
decode_to_slice ๐Ÿ”’
Decode an unsigned integer into a big endian byte slice with all leading zeroes removed.
encode_bytes ๐Ÿ”’
Encode the given big endian bytes representing an integer as ASN.1 DER.
encoded_len ๐Ÿ”’
Get the encoded length for the given unsigned integer serialized as bytes.
needs_leading_zero ๐Ÿ”’
Does the given integer need a leading zero?
strip_leading_zeroes ๐Ÿ”’
Strip the leading zeroes from the given byte slice