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
Rsa(Vec<u8>)
Ecc(Vec<u8>, Vec<u8>)
Edc(Vec<u8>)
Trait Implementations
impl Clone for PublicKey
[src]
fn clone(&self) -> PublicKey
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Debug for PublicKey
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for PublicKey
[src]
fn eq(&self, __arg_0: &PublicKey) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &PublicKey) -> bool
[src]
This method tests for !=
.