Trait ring::aead::BoundKey

source ·
pub trait BoundKey<N: NonceSequence>: Debug {
    // Required methods
    fn new(key: UnboundKey, nonce_sequence: N) -> Self;
    fn algorithm(&self) -> &'static Algorithm;
}
Expand description

An AEAD key bound to a nonce sequence.

Required Methods§

source

fn new(key: UnboundKey, nonce_sequence: N) -> Self

Constructs a new key from the given UnboundKey and NonceSequence.

source

fn algorithm(&self) -> &'static Algorithm

The key’s AEAD algorithm.

Object Safety§

This trait is not object safe.

Implementors§