serde_asn1_der
Welcome to serde_asn1_der
🎉
This crate implements an ASN.1-DER subset for serde based upon
asn1_der
.
The following types are supported:
bool
: The ASN.1-BOOLEAN-typeu8
,u16
,u32
,u64
,u128
,usize
: The ASN.1-INTEGER-type()
,Option
: The ASN.1-NULL-type&[u8]
,Vec<u8>
: The ASN.1-OctetString-type&str
,String
: The ASN.1-UTF8String-type- And everything sequence-like combined out of this types
With the serde_derive
-crate you can derive Serialize
and Deserialize
for all non-primitive
elements:
use ;
// Now our struct supports all DER-conversion-traits
// Now our struct supports all DER-conversion-traits too
Example
use ;
use ;