simple_asn1

Function der_encode

source
pub fn der_encode<T: ToASN1>(v: &T) -> Result<Vec<u8>, T::Error>
Expand description

Automatically encode a type into binary via DER encoding, assuming that the type is a member of ToASN1.