[−][src]Trait red_asn1::Asn1Object
A trait to allow objects to be built/parsed from ASN1-DER
Required methods
pub fn tag() -> Tag
[src]
Method to retrieve the tag of the object, used to identify each object in ASN1
pub fn build_value(&self) -> Vec<u8>
[src]
Method which indicates how object value must be built
pub fn parse_value(&mut self, raw: &[u8]) -> Result<()>
[src]
Method which indicates how object value must be parsed
Provided methods
pub fn build(&self) -> Vec<u8>
[src]
To encode the object to DER, generally does not need to be overwritten. Usually, just encode_value should be overwritten
pub fn parse(raw: &[u8]) -> Result<(&[u8], Self)>
[src]
To parse the object from DER, generally does not need to be overwritten. Usually, just parse_value should be overwritten