-
Notifications
You must be signed in to change notification settings - Fork 162
Open
Description
Length
is currently a newtype of u32
. This is because the Decode
and Encode
impls are specialized to 32-bit integers:
- decode: https://github.com/RustCrypto/formats/blob/bd84063/der/src/length.rs#L272-L273
- encode: https://github.com/RustCrypto/formats/blob/bd84063/der/src/length.rs#L309-L315
If the implementation could support any usize
, we could change the internal type to usize
which would allow infallible conversions to/from usize
.
Metadata
Metadata
Assignees
Labels
No labels