Struct saltyrtc_client::crypto::AuthToken[][src]

pub struct AuthToken(_);

Wrapper for holding an auth token and encrypting / decrypting messages.

Methods

impl AuthToken
[src]

Create a new auth token.

This can fail only if libsodium initialization fails.

Create an AuthToken instance from hex bytes.

Create an AuthToken instance from a 32 byte slice.

Return a reference to the secret key.

Return a reference to the secret key bytes.

Trait Implementations

impl Debug for AuthToken
[src]

Formats the value using the given formatter. Read more

impl Clone for AuthToken
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl PartialEq for AuthToken
[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 AuthToken
[src]

Auto Trait Implementations

impl Send for AuthToken

impl Sync for AuthToken