Struct box_stream::crypto::PlainHeader [] [src]

#[repr(C)]
pub struct PlainHeader { /* fields omitted */ }

The result of decrypting a cypher_header. This is sodiumoxide::crypto::secretbox::MACBYTES smaller than the encrypted header since the leading mac is not needed anymore.

Methods

impl PlainHeader
[src]

[src]

Create a new PlainHeader, initially zeroed out.

[src]

Returns the length of the packet this header describes.

[src]

Returns the mac of the packet this header describes.

[src]

Returns whether this header signals the end of the stream.

Trait Implementations

impl Debug for PlainHeader
[src]

[src]

Formats the value using the given formatter. Read more

Auto Trait Implementations

impl Send for PlainHeader

impl Sync for PlainHeader