Struct safe_crypto::Nonce[][src]

pub struct Nonce { /* fields omitted */ }

Nonce structure used for authenticated symmetric encryption.

Methods

impl Nonce
[src]

Generates a new nonce.

Create a nonce from bytes. Useful when it has been serialised.

Convert the Nonce into the raw underlying bytes. For anyone who wants to store the nonce.

Trait Implementations

impl Debug for Nonce
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Nonce
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Nonce
[src]

impl Clone for Nonce
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for Nonce
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations

impl Send for Nonce

impl Sync for Nonce