Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions src/asn1_types/integer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,6 @@ fn trim_slice(bytes: &[u8]) -> &[u8] {
/// Decode an unsigned integer into a byte array of the requested size
/// containing a big endian integer.
fn decode_array_uint<const N: usize>(bytes: &[u8]) -> Result<[u8; N]> {
if is_highest_bit_set(bytes) {
return Err(Error::IntegerNegative);
}
let input = trim_slice(bytes);

if input.len() > N {
Expand Down
Loading