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]
pub fn new() -> PlainHeader
[src]
Create a new PlainHeader, initially zeroed out.
pub fn get_packet_len(&self) -> u16
[src]
Returns the length of the packet this header describes.
pub fn get_packet_mac(&self) -> [u8; 16]
[src]
Returns the mac of the packet this header describes.
pub fn is_final_header(&self) -> bool
[src]
Returns whether this header signals the end of the stream.