Struct ring::aead::Algorithm [] [src]

pub struct Algorithm {
    // some fields omitted
}

An AEAD Algorithm.

C analog: EVP_AEAD

Go analog: crypto.cipher.AEAD

Methods

impl Algorithm
[src]

fn key_len(&self) -> usize

The length of the key.

C analog: EVP_AEAD_key_length

fn max_overhead_len(&self) -> usize

The maximum number of bytes that sealing operations may add to plaintexts. See also MAX_OVERHEAD_LEN.

C analog: EVP_AEAD_max_overhead

Go analog: crypto.cipher.AEAD.Overhead

fn nonce_len(&self) -> usize

The length of the nonces.

C analog: EVP_AEAD_nonce_length

Go analog: crypto.cipher.AEAD.NonceSize