Struct ssh_key::private::PrivateKey [−][src]
pub struct PrivateKey {
pub cipher_alg: CipherAlg,
pub kdf_alg: KdfAlg,
pub kdf_options: KdfOptions,
pub key_data: KeypairData,
pub comment: String,
}Expand description
SSH private key.
Fields
cipher_alg: CipherAlgCipher algorithm (a.k.a. ciphername).
kdf_alg: KdfAlgKDF algorithm.
kdf_options: KdfOptionsKDF options.
key_data: KeypairDataKey data.
comment: StringThis is supported on crate feature
alloc only.Comment on the key (e.g. email address).
Implementations
Magic string used to identify keys in this format.
Parse an OpenSSH-formatted private key.
OpenSSH-formatted private keys begin with the following:
-----BEGIN OPENSSH PRIVATE KEY-----Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for PrivateKey
impl Send for PrivateKey
impl Sync for PrivateKey
impl Unpin for PrivateKey
impl UnwindSafe for PrivateKey
Blanket Implementations
Mutably borrows from an owned value. Read more