pub enum Algorithm {
SHA1,
SHA256,
SHA512,
}Expand description
Supported HMAC algorithms for HOTP/TOTP
Variants§
SHA1
HMAC-SHA1 - Most common for legacy applications
SHA256
HMAC-SHA256 - More secure, supported by modern apps
SHA512
HMAC-SHA512 - Highly secure
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Forget for Algorithm
impl Freeze for Algorithm
impl Move for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin 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