pub struct BasicGen1 { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Base for BasicGen1
impl Base for BasicGen1
fn select_adpu() -> Vec<u32>
fn card_type() -> u32
fn pin_rule() -> String
fn puk_rule(&self) -> String
fn change_pairing_key( &mut self, index: u8, pairing_key: &[u8], puk: String, ) -> Result<(), Error>
fn change_pin(&mut self, new_pin: String) -> Result<(), Error>
fn change_puk( &mut self, current_puk: String, new_puk: String, ) -> Result<(), Error>
fn init( &self, name: String, email: String, pin: String, puk: String, pairing_secret: Option<Bytes>, _nfc_sign: Option<bool>, ) -> Result<Vec<u8>, Error>
fn derive( &mut self, _key_type: Option<u8>, path: Option<PathBuf>, ) -> Result<(), Error>
fn dual_seed_public_key(&mut self, pin: &str) -> Result<Bytes, Error>
fn dual_seed_load(&mut self, data: Bytes, pin: &str) -> Result<(), Error>
fn extended_public_key(&self) -> bool
fn generate_random_number(&mut self, size: u8) -> Result<Bytes, Error>
fn generate_seed(&mut self, pin: &str) -> Result<Bytes, Error>
fn get_public_key( &mut self, derivation: u8, key_type: Option<u8>, path: Option<PathBuf>, compressed: Option<bool>, ) -> Result<Bytes, Error>
fn history(&mut self, index: u8) -> Result<(u32, Bytes), Error>
fn is_initialized(&self) -> bool
fn load_seed( &mut self, seed: Option<Bytes>, pin: Option<String>, ) -> Result<(), Error>
fn pin_authentication(&self) -> bool
fn pinless_enabled(&self) -> bool
fn reset(&mut self, puk: &str)
fn seed_source(&mut self) -> Result<SeedSource, Error>
fn set_pin_authentication( &mut self, status: bool, puk: &str, ) -> Result<(), Error>
fn set_pinless_path(&mut self, path: String, puk: &str) -> Result<(), Error>
fn set_extended_public_key( &mut self, status: bool, puk: &str, ) -> Result<(), Error>
fn sign( &mut self, data: Bytes, derivation: Option<u8>, key_type: Option<u8>, path: Option<&str>, pin: Option<&str>, filter_eos: Option<bool>, ) -> Result<Bytes, Error>
fn signing_counter(&mut self) -> Result<u32, Error>
fn unblock_pin(&mut self, puk: String, new_pin: String) -> Result<(), Error>
fn user_data(&self) -> Bytes
fn write_user_data(&self, _value: Bytes)
fn user_key_add( &mut self, slot_index: u8, data_info: &str, public_key: Bytes, puk: &str, cred_id: Option<Bytes>, ) -> Result<(), Error>
fn user_key_delete(&mut self, slot: u8, puk: &str) -> Result<(), Error>
fn user_key_info(&mut self, slot: u8) -> Result<(String, Bytes), Error>
fn user_key_enabled(&self, slot: u8) -> bool
fn user_key_challenge_response_nonce(&mut self) -> Result<Bytes, Error>
fn user_key_challenge_response_open( &mut self, slot: u8, signature: Bytes, ) -> bool
fn user_key_signature_open( &mut self, slot: u8, message: Bytes, signature: Bytes, ) -> bool
fn valid_key(&self) -> bool
fn valid_pin( &self, pin: String, _pin_name: Option<String>, ) -> Result<String, Error>
fn valid_puk( &self, puk: String, _puk_name: Option<String>, ) -> Result<String, Error>
fn verify_pin(&mut self, pin: &str)
fn sign_eos( &mut self, _apdu: &[u32], _data: Bytes, _pin: &str, ) -> Result<Bytes, Error>
fn get_info(&mut self) -> Result<Bytes, Error>
fn signature_check( &mut self, _nonce: Bytes, ) -> Result<SignatureCheckResponse, Error>
Source§fn is_alive(&mut self) -> bool
fn is_alive(&mut self) -> bool
Returns whether the connection to the card is established and the card hasn’t been changed
fn info(&mut self) -> CardInfo
fn is_open(&self) -> bool
fn origin(&mut self) -> CardOrigin
Source§impl BasePriv for BasicGen1
impl BasePriv for BasicGen1
fn owner(&mut self) -> CardUser
fn borrow_connection(&mut self) -> &mut Connection
fn serial_number(&self) -> u64
fn borrow_applet_version(&self) -> &Vec<u8> ⓘ
fn borrow_origin(&self) -> &CardOrigin
fn borrow_origin_mut(&mut self) -> &mut CardOrigin
fn borrow_auth_type(&self) -> &AuthType
Auto Trait Implementations§
impl !Freeze for BasicGen1
impl !RefUnwindSafe for BasicGen1
impl !Send for BasicGen1
impl !Sync for BasicGen1
impl Unpin for BasicGen1
impl UnsafeUnpin for BasicGen1
impl !UnwindSafe for BasicGen1
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