pub struct GeneratedKeypair {
pub algorithm: KeyAlgorithm,
pub private_openssh: Zeroizing<String>,
pub public_openssh: String,
}Expand description
A freshly generated keypair, in OpenSSH text form. The private half is held
in a Zeroizing buffer so it is wiped when the caller drops it; the face
immediately moves it into a sealed SecretValue.
Fields§
§algorithm: KeyAlgorithmThe algorithm.
private_openssh: Zeroizing<String>OpenSSH-format private key (-----BEGIN OPENSSH PRIVATE KEY-----).
public_openssh: StringOpenSSH-format public key (ssh-ed25519 … / ssh-rsa …).
Auto Trait Implementations§
impl Freeze for GeneratedKeypair
impl RefUnwindSafe for GeneratedKeypair
impl Send for GeneratedKeypair
impl Sync for GeneratedKeypair
impl Unpin for GeneratedKeypair
impl UnsafeUnpin for GeneratedKeypair
impl UnwindSafe for GeneratedKeypair
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