Struct ring::aead::Algorithm [−][src]
pub struct Algorithm { /* fields omitted */ }Methods
impl Algorithm[src]
impl Algorithmpub fn key_len(&self) -> usize[src]
pub fn key_len(&self) -> usizeThe length of the key.
C analog: EVP_AEAD_key_length
pub fn tag_len(&self) -> usize[src]
pub fn tag_len(&self) -> usizeThe length of a tag.
See also MAX_TAG_LEN.
C analog: EVP_AEAD_max_overhead
Go analog:
crypto.cipher.AEAD.Overhead
pub fn nonce_len(&self) -> usize[src]
pub fn nonce_len(&self) -> usizeTrait Implementations
impl PartialEq for Algorithm[src]
impl PartialEq for Algorithmfn eq(&self, other: &Self) -> bool[src]
fn eq(&self, other: &Self) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &Rhs) -> bool1.0.0[src]
fn ne(&self, other: &Rhs) -> bool1.0.0
[src]This method tests for !=.
impl Eq for Algorithm[src]
impl Eq for Algorithm