Enum libyubihsm::PublicKey [] [src]

pub enum PublicKey {
    Ecc(Vec<u8>, Vec<u8>),

The public component of an asymmetric key stored on the device.

The contents of each variant correspond to the component(s) necessary to represent a public key using that algorithm. For RSA, the contents are the public modulus n. For ECC, the first component is the public point x, and the second component is the public point y. For EDC, the contents are the public point a (compressed, per the Yubico documentation).


Trait Implementations

impl Clone for PublicKey


Returns a copy of the value. Read more


Performs copy-assignment from source. Read more

impl Debug for PublicKey


Formats the value using the given formatter. Read more

impl PartialEq for PublicKey


This method tests for self and other values to be equal, and is used by ==. Read more


This method tests for !=.

impl Eq for PublicKey

Auto Trait Implementations

impl Send for PublicKey

impl Sync for PublicKey