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
INTEGERreference 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
INTEGERis canonically encoded.