[−][src]Module bcder::int
Unbounded integers.
In ASN.1 integers are unbounded and, consequently, BER encodes integer in
a variable length way. While the decode and encode modules allow
working with Rust’s native integer types, in some cases variable length
integers are necessary. This module provides two types, Integer
and
Unsigned
for signed and unsigned unbounded integers. While the
second type isn’t strictly necessary, unsigned unbounded integers appear
often enough in ASN.1 definitions to warrant a separate such type.
Structs
Integer | A BER encoded integer. |
OverflowError | |
Unsigned | A BER encoded unsigned integer. |