Enum openpgp_card::PinType
source · [−]pub enum PinType {
Sign,
User,
Admin,
}
Expand description
Specify a PIN to verify (distinguishes between Sign
, User
and Admin
).
(Note that for PIN management, in particular changing a PIN, “signing and user” are
not distinguished. They always share the same PIN value PW1
)
Variants
Sign
Verify PW1 in mode P2=81 (for the PSO:CDS operation)
User
Verify PW1 in mode P2=82 (for all other User operations)
Admin
Verify PW3 (for Admin operations)
Implementations
Trait Implementations
impl Copy for PinType
impl Eq for PinType
impl StructuralEq for PinType
impl StructuralPartialEq for PinType
Auto Trait Implementations
impl RefUnwindSafe for PinType
impl Send for PinType
impl Sync for PinType
impl Unpin for PinType
impl UnwindSafe for PinType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more