Enum lpc55::pki::SigningKey
source · [−]pub enum SigningKey {
Pkcs1(RsaPrivateKey),
Pkcs11Uri(Pkcs11Uri),
}
Variants
Pkcs1(RsaPrivateKey)
Pkcs11Uri(Pkcs11Uri)
Implementations
sourceimpl SigningKey
impl SigningKey
pub fn try_from_uri(uri: &str) -> Result<Self>
pub fn try_load(source: &SigningKeySource) -> Result<SigningKey>
pub fn sign(&self, data: &[u8]) -> Signature
pub fn public_key(&self) -> PublicKey
pub fn fingerprint(&self) -> Sha256Hash
Trait Implementations
sourceimpl Clone for SigningKey
impl Clone for SigningKey
sourcefn clone(&self) -> SigningKey
fn clone(&self) -> SigningKey
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresourceimpl Debug for SigningKey
impl Debug for SigningKey
sourceimpl PartialEq<SigningKey> for SigningKey
impl PartialEq<SigningKey> for SigningKey
sourcefn eq(&self, other: &SigningKey) -> bool
fn eq(&self, other: &SigningKey) -> bool
sourceimpl Signer<Signature> for SigningKey
impl Signer<Signature> for SigningKey
impl StructuralPartialEq for SigningKey
Auto Trait Implementations
impl RefUnwindSafe for SigningKey
impl Send for SigningKey
impl Sync for SigningKey
impl Unpin for SigningKey
impl UnwindSafe for SigningKey
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more