pub enum Algorithm {
Show 36 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),
}
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)
Implementations§
Source§impl Algorithm
impl Algorithm
pub fn from_name(name: impl CStrArgument) -> Option<Algorithm>
pub fn is_available(&self) -> bool
pub fn name(&self) -> Result<&'static str, Option<Utf8Error>>
pub fn name_raw(&self) -> Option<&'static CStr>
pub fn key_len(&self) -> usize
pub fn mac_len(&self) -> usize
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)