pub struct KeyRing { /* private fields */ }
Available on crate features
ecdsa
and nistp384
only.Expand description
ECDSA/P-384 key ring.
Implementations§
source§impl KeyRing
impl KeyRing
sourcepub fn get(&self, verifying_key: &VerifyingKey) -> Option<&SigningKey>
pub fn get(&self, verifying_key: &VerifyingKey) -> Option<&SigningKey>
Get the SigningKey
that corresponds to the provided VerifyingKey
(i.e. public key)
sourcepub fn iter(&self) -> impl Iterator<Item = &SigningKey>
pub fn iter(&self) -> impl Iterator<Item = &SigningKey>
Iterate over the keys in the keyring.
Trait Implementations§
source§impl LoadPkcs8 for KeyRing
impl LoadPkcs8 for KeyRing
source§fn load_pkcs8(&mut self, private_key: PrivateKeyInfo<'_>) -> Result<KeyHandle>
fn load_pkcs8(&mut self, private_key: PrivateKeyInfo<'_>) -> Result<KeyHandle>
Load a PKCS#8 key into the key ring.
Auto Trait Implementations§
impl !RefUnwindSafe for KeyRing
impl Send for KeyRing
impl Sync for KeyRing
impl Unpin for KeyRing
impl !UnwindSafe for KeyRing
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