Skip to main content

der_bit_string

Function der_bit_string 

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

Wrap contents in a DER BIT STRING (tag 0x03).

The leading 0x00 byte signals that no bits are unused in the final octet — required for all SubjectPublicKeyInfo public keys.