pub enum HostKeyAlgorithm {
SshEd25519,
RsaSha2_256,
RsaSha2_512,
SshRsa,
EcdsaSha2Nistp256,
EcdsaSha2Nistp384,
EcdsaSha2Nistp521,
}Expand description
Host key algorithm identifier
Variants§
SshEd25519
ssh-ed25519 - EdDSA signature using Ed25519 (RECOMMENDED, modern)
RsaSha2_256
rsa-sha2-256 - RSA signature with SHA-256 (REQUIRED)
RsaSha2_512
rsa-sha2-512 - RSA signature with SHA-512 (REQUIRED)
SshRsa
ssh-rsa - Legacy RSA with SHA-1 (DEPRECATED, for compatibility only)
EcdsaSha2Nistp256
ecdsa-sha2-nistp256 - ECDSA signature using P-256 curve
EcdsaSha2Nistp384
ecdsa-sha2-nistp384 - ECDSA signature using P-384 curve
EcdsaSha2Nistp521
ecdsa-sha2-nistp521 - ECDSA signature using P-521 curve
Implementations§
Trait Implementations§
Source§impl Clone for HostKeyAlgorithm
impl Clone for HostKeyAlgorithm
impl Copy for HostKeyAlgorithm
Source§impl Debug for HostKeyAlgorithm
impl Debug for HostKeyAlgorithm
impl Eq for HostKeyAlgorithm
Source§impl PartialEq for HostKeyAlgorithm
impl PartialEq for HostKeyAlgorithm
impl StructuralPartialEq for HostKeyAlgorithm
Auto Trait Implementations§
impl Freeze for HostKeyAlgorithm
impl RefUnwindSafe for HostKeyAlgorithm
impl Send for HostKeyAlgorithm
impl Sync for HostKeyAlgorithm
impl Unpin for HostKeyAlgorithm
impl UnsafeUnpin for HostKeyAlgorithm
impl UnwindSafe for HostKeyAlgorithm
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