Function simple_asn1::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
.
pub fn der_encode<T: ToASN1>(v: &T) -> Result<Vec<u8>, T::Error>
Automatically encode a type into binary via DER encoding, assuming
that the type is a member of ToASN1
.