Struct asn1_cereal::ber::enc::DER [] [src]

pub struct DER;

Distinguished Encoding Rules are a subset of BER, and provide a deterministic, shortest form of encoding. These are the default encoding rules used when encoding ASN.1.

Note: When decoding elements, invalid DER will cause an error. If this is an issue, the BER encoding rules should be used

Trait Implementations

impl Copy for DER
[src]

impl Clone for DER
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl BerEncRules for DER
[src]

Get the encoding rules for tags.

Get the encoding rules for lengths.

Returns true when primitive elements should be encoded using the shortest form. If this is true when decoding, it should be an error to not use the shortest form. Read more