Enum libyubihsm::PublicKey [] [src]

pub enum PublicKey {
    Rsa(Vec<u8>),
    Ecc(Vec<u8>, Vec<u8>),
    Edc(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).

Variants

Trait Implementations

impl Clone for PublicKey
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Debug for PublicKey
[src]

[src]

Formats the value using the given formatter. Read more

impl PartialEq for PublicKey
[src]

[src]

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

[src]

This method tests for !=.

impl Eq for PublicKey
[src]

Auto Trait Implementations

impl Send for PublicKey

impl Sync for PublicKey