pub enum PublicKeyAlgorithm {
Ed25519,
X25519,
}Expand description
The kind of key a credential.public_key reply carries.
One vault operation serves the public half of both vault-held key kinds, so the
algorithm is a closed type rather than a string: a caller that expects a signing
verifier must match Ed25519 and cannot mistake an X25519 encryption key for one.
Variants§
Ed25519
An Ed25519 signing key’s public half, which verifies credential.sign output.
X25519
An X25519 KEM key’s public half, which HPKE senders and recipients use with
credential.seal and credential.open.
Implementations§
Trait Implementations§
Source§impl Clone for PublicKeyAlgorithm
impl Clone for PublicKeyAlgorithm
impl Copy for PublicKeyAlgorithm
Source§impl Debug for PublicKeyAlgorithm
impl Debug for PublicKeyAlgorithm
impl Eq for PublicKeyAlgorithm
Source§impl Hash for PublicKeyAlgorithm
impl Hash for PublicKeyAlgorithm
Source§impl PartialEq for PublicKeyAlgorithm
impl PartialEq for PublicKeyAlgorithm
impl StructuralPartialEq for PublicKeyAlgorithm
Auto Trait Implementations§
impl Freeze for PublicKeyAlgorithm
impl RefUnwindSafe for PublicKeyAlgorithm
impl Send for PublicKeyAlgorithm
impl Sync for PublicKeyAlgorithm
impl Unpin for PublicKeyAlgorithm
impl UnsafeUnpin for PublicKeyAlgorithm
impl UnwindSafe for PublicKeyAlgorithm
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