pub enum Mode {
EdDSALegacy,
Ed25519,
}
Expand description
Specifies which OpenPGP framing (e.g. Ed25519
vs. EdDSALegacy
) is used, and also chooses
between curve Ed25519 and Ed448 (TODO: not yet implemented)
Variants§
EdDSALegacy
EdDSALegacy (with curve Ed25519). May only be used with v4 keys.
Ref https://www.rfc-editor.org/rfc/rfc9580.html#key-eddsa-legacy
Ed25519
Ed25519 as defined in RFC 9580
Ref https://www.rfc-editor.org/rfc/rfc9580.html#name-algorithm-specific-part-for-ed2
Auto Trait Implementations§
impl Freeze for Mode
impl RefUnwindSafe for Mode
impl Send for Mode
impl Sync for Mode
impl Unpin for Mode
impl UnwindSafe for Mode
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