Skip to main content

der_integer

Function der_integer 

Source
pub fn der_integer(value: &[u8]) -> Vec<u8> 
Expand description

Encode value as a DER INTEGER (tag 0x02).

DER integers are signed. If the high bit of value[0] is set, a leading 0x00 byte is prepended so the value is not misread as negative.