Module int

Module int 

Source
Expand description

Support for encoding signed integers

Re-exportsยง

pub use allocating::Int;

Modulesยง

allocating ๐Ÿ”’

Macrosยง

impl_encoding_traits ๐Ÿ”’

Structsยง

IntRef
Signed arbitrary precision ASN.1 INTEGER reference type.

Functionsยง

decode_to_array ๐Ÿ”’
Decode an signed integer of the specified size.
encode_bytes ๐Ÿ”’
Encode the given big endian bytes representing an integer as ASN.1 DER.
negative_encoded_len ๐Ÿ”’
Get the encoded length for the given negative integer serialized as bytes.
strip_leading_ones ๐Ÿ”’
Strip the leading all-ones bytes from the given byte slice.
validate_canonical ๐Ÿ”’
Ensure INTEGER is canonically encoded.