Struct ring::aead::Algorithm [−][src]
pub struct Algorithm { /* fields omitted */ }
Methods
impl Algorithm
[src]
impl Algorithm
pub fn key_len(&self) -> usize
[src]
pub fn key_len(&self) -> usize
The length of the key.
C analog: EVP_AEAD_key_length
pub fn tag_len(&self) -> usize
[src]
pub fn tag_len(&self) -> usize
The 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) -> usize
Trait Implementations
impl PartialEq for Algorithm
[src]
impl PartialEq for Algorithm
fn eq(&self, other: &Self) -> bool
[src]
fn eq(&self, other: &Self) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]This method tests for !=
.
impl Eq for Algorithm
[src]
impl Eq for Algorithm