pub enum Algorithm {
Sha1,
Sha256,
Sha512,
}Expand description
Which HMAC an authenticator is asked to use.
SHA-1 is the default and, in practice, the only universally supported
choice: RFC 6238 §1.2 allows all three, but an app handed
algorithm=SHA256 may quietly ignore it and compute SHA-1 anyway, which
looks to the person like the server rejecting a correct code. Change this
only when you control both ends.
Variants§
Implementations§
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 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