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]

[src]

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

[src]

Write a NULL tag.

[src]

Write an arbitrary element.

[src]

Write the given input as an integer.

[src]

Write the given input as a positive integer.

[src]

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

[src]

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

[src]

Write an OBJECT IDENTIFIER.

[src]

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.

[src]

Write a BIT STRING.

[src]

Write an OCTET STRING.