Struct ecc608_linux::Ecc [−][src]
pub struct Ecc { /* fields omitted */ }Implementations
impl Ecc[src]
impl Ecc[src]pub fn from_path(path: &str, address: u16) -> Result<Self>[src]
pub fn get_info(&mut self) -> Result<Bytes>[src]
pub fn get_serial(&mut self) -> Result<Bytes>[src]
pub fn get_serial(&mut self) -> Result<Bytes>[src]Returns the 9 bytes that represent the serial number of the ECC. Per
section 2.2.6 of the Data Sheet the first two, and last byte of the
returned binary will always be [0x01, 0x23] and 0xEE
pub fn genkey(&mut self, key_type: KeyType, slot: u8) -> Result<Bytes>[src]
pub fn get_slot_config(&mut self, slot: u8) -> Result<SlotConfig>[src]
pub fn set_slot_config(&mut self, slot: u8, config: &SlotConfig) -> Result[src]
pub fn get_key_config(&mut self, slot: u8) -> Result<KeyConfig>[src]
pub fn set_key_config(&mut self, slot: u8, config: &KeyConfig) -> Result[src]
pub fn get_locked(&mut self, zone: &Zone) -> Result<bool>[src]
pub fn set_locked(&mut self, zone: Zone) -> Result[src]
pub fn sign(&mut self, key_slot: u8, data: &[u8]) -> Result<Bytes>[src]
pub fn random(&mut self) -> Result<Bytes>[src]
pub fn nonce(&mut self, target: DataBuffer, data: &[u8]) -> Result[src]
pub fn read(&mut self, read_32: bool, address: &Address) -> Result<Bytes>[src]
pub fn write(&mut self, address: &Address, bytes: &[u8]) -> Result[src]
Auto Trait Implementations
impl RefUnwindSafe for Ecc
impl Send for Ecc
impl Sync for Ecc
impl Unpin for Ecc
impl UnwindSafe for Ecc
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for Ttype Output = T
type Output = TShould always be Self