[][src]Struct monocypher::aead::lock::Context

pub struct Context(_);

Methods

impl Context
[src]

Incrementally encrypt and authenticate plaintext with additional data. Note: Most users should not need this.

Example

use monocypher::aead::lock::Context;

let key = [2u8; 32];
let nonce = [1u8; 24];
let mut ctx = Context::new(key, nonce);
ctx.auth_ad("data".as_bytes());
let cip = ctx.update("test".as_bytes());
let ret = ctx.finalize();

Auto Trait Implementations

impl Send for Context

impl Sync for Context

Blanket Implementations

impl<T> From for T
[src]

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom for T where
    T: From<U>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T> BorrowMut for T where
    T: ?Sized
[src]