Struct derp::Der [] [src]

pub struct Der<'a, W: Write + 'a> { /* fields omitted */ }

Helper for writing DER that automattically encoes tags and content lengths.

Methods

impl<'a, W: Write> Der<'a, W>
[src]

Create a new Der structure that writes values to the given writer.

Write a NULL tag.

Write an arbitrary element.

Write the given input as an integer.

Write the given input as a positive integer.

Write a nested structure by passing in a handling function that writes to an intermediate Vec before writing the whole sequence to self.

Write a SEQUENCE by passing in a handling function that writes to an intermediate Vec before writing the whole sequence to self.

Write an OBJECT IDENTIFIER.

Write raw bytes to self. This does not calculate length or apply. This should only be used when you know you are dealing with bytes that are already DER encoded.

Write a BIT STRING.

Write an OCTET STRING.