pub struct Pkcs11SigningKey { /* private fields */ }Expand description
A rustls [SigningKey] backed by a PKCS#11 token in Kryoptic.
Implementations§
Source§impl Pkcs11SigningKey
impl Pkcs11SigningKey
pub fn new( hsm: Arc<HsmContext>, key_label: impl Into<String>, algorithm: KeyAlgorithm, ) -> Self
Trait Implementations§
Source§impl Debug for Pkcs11SigningKey
impl Debug for Pkcs11SigningKey
Source§impl SigningKey for Pkcs11SigningKey
impl SigningKey for Pkcs11SigningKey
Source§fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>
fn choose_scheme(&self, offered: &[SignatureScheme]) -> Option<Box<dyn Signer>>
Choose a
SignatureScheme from those offered. Read more§fn public_key(&self) -> Option<SubjectPublicKeyInfoDer<'_>>
fn public_key(&self) -> Option<SubjectPublicKeyInfoDer<'_>>
Get the RFC 5280-compliant SubjectPublicKeyInfo (SPKI) of this [
SigningKey] if available.Auto Trait Implementations§
impl Freeze for Pkcs11SigningKey
impl RefUnwindSafe for Pkcs11SigningKey
impl Send for Pkcs11SigningKey
impl Sync for Pkcs11SigningKey
impl Unpin for Pkcs11SigningKey
impl UnsafeUnpin for Pkcs11SigningKey
impl UnwindSafe for Pkcs11SigningKey
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more