pub enum Algorithm {
X25519,
X448,
Ed25519,
Ed448,
}Expand description
The exact public-key algorithm named by an RFC 8410 SPKI.
Equal key widths do not make X25519 and Ed25519 interchangeable. This is key identity, not authorization to use a signature or key-agreement mode.
Variants§
X25519
X25519 key agreement (RFC 7748).
X448
X448 key agreement (RFC 7748).
Ed25519
Ed25519 signature public key (RFC 8032).
Ed448
Ed448 signature public key (RFC 8032).
Implementations§
Trait Implementations§
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnsafeUnpin for Algorithm
impl UnwindSafe for Algorithm
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