Enum gcrypt::mac::Algorithm [−][src]
pub enum Algorithm { HmacSha256, HmacSha224, HmacSha512, HmacSha384, HmacSha1, HmacMd5, HmacMd4, HmacRmd160, HmacTiger1, HmacWhirlpool, HmacGostR3411_94, HmacStribog256, HmacStribog512, CmacAes, Cmac3des, CmacCamellia, CmacCast5, CmacBlowfish, CmacTwofish, CmacSerpent, CmacSeed, CmacRfc2268, CmacIdea, CmacGost28147, GmacAes, GmacCamellia, GmacTwofish, GmacSerpent, GmacSeed, Poly1305, Poly1305Aes, Poly1305Camellia, Poly1305Twofish, Poly1305Serpent, Poly1305Seed, Other(c_int), }
Variants
HmacSha256
HmacSha224
HmacSha512
HmacSha384
HmacSha1
HmacMd5
HmacMd4
HmacRmd160
HmacTiger1
HmacWhirlpool
HmacGostR3411_94
HmacStribog256
HmacStribog512
CmacAes
Cmac3des
CmacCamellia
CmacCast5
CmacBlowfish
CmacTwofish
CmacSerpent
CmacSeed
CmacRfc2268
CmacIdea
CmacGost28147
GmacAes
GmacCamellia
GmacTwofish
GmacSerpent
GmacSeed
Poly1305
Poly1305Aes
Poly1305Camellia
Poly1305Twofish
Poly1305Serpent
Poly1305Seed
Other(c_int)
Methods
impl Algorithm
[src]
impl Algorithm
impl Algorithm
[src]
impl Algorithm
pub fn from_name(
name: impl CStrArgument
) -> Option<Algorithm>
[src]
pub fn from_name(
name: impl CStrArgument
) -> Option<Algorithm>
pub fn is_available(&self) -> bool
[src]
pub fn is_available(&self) -> bool
pub fn name(&self) -> Result<&'static str, Option<Utf8Error>>
[src]
pub fn name(&self) -> Result<&'static str, Option<Utf8Error>>
pub fn name_raw(&self) -> Option<&'static CStr>
[src]
pub fn name_raw(&self) -> Option<&'static CStr>
pub fn key_len(&self) -> usize
[src]
pub fn key_len(&self) -> usize
pub fn mac_len(&self) -> usize
[src]
pub fn mac_len(&self) -> usize
Trait Implementations
impl Copy for Algorithm
[src]
impl Copy for Algorithm
impl Clone for Algorithm
[src]
impl Clone for Algorithm
fn clone(&self) -> Algorithm
[src]
fn clone(&self) -> Algorithm
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Eq for Algorithm
[src]
impl Eq for Algorithm
impl PartialEq for Algorithm
[src]
impl PartialEq for Algorithm
fn eq(&self, other: &Algorithm) -> bool
[src]
fn eq(&self, other: &Algorithm) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Algorithm) -> bool
[src]
fn ne(&self, other: &Algorithm) -> bool
This method tests for !=
.
impl Hash for Algorithm
[src]
impl Hash for Algorithm
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0
[src]Feeds a slice of this type into the given [Hasher
]. Read more
impl Debug for Algorithm
[src]
impl Debug for Algorithm