MCPcopy Create free account
hub / github.com/RustCrypto/formats / encode

Method encode

der/src/encode.rs:81–84  ·  view source on GitHub ↗

Encode this value as ASN.1 DER using the provided [`Writer`].

(&self, writer: &mut dyn Writer)

Source from the content-addressed store, hash-verified

79
80 /// Encode this value as ASN.1 DER using the provided [`Writer`].
81 fn encode(&self, writer: &mut dyn Writer) -> Result<()> {
82 self.header()?.encode(writer)?;
83 self.encode_value(writer)
84 }
85}
86
87/// PEM encoding trait.

Callers 3

encode_to_sliceMethod · 0.45
encode_to_vecMethod · 0.45
to_pemMethod · 0.45

Calls 2

headerMethod · 0.80
encode_valueMethod · 0.45

Tested by

no test coverage detected