Enum ssh_key::Algorithm [−][src]
#[non_exhaustive]
pub enum Algorithm {
Dsa,
Ecdsa(EcdsaCurve),
Ed25519,
Rsa,
}Expand description
SSH key algorithms.
This type provides a registry of supported digital signature algorithms used for SSH keys.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Dsa
Digital Signature Algorithm
Ecdsa(EcdsaCurve)
Tuple Fields
0: EcdsaCurveElliptic Curve Digital Signature Algorithm
Ed25519
Ed25519
Rsa
RSA
Implementations
Decode algorithm from the given string identifier.
Supported algorithms
ecdsa-sha2-nistp256ecdsa-sha2-nistp384ecdsa-sha2-nistp521ssh-dssssh-ed25519ssh-rsa
Get the string identifier which corresponds to this algorithm.
Is the algorithm Ed25519?
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
Mutably borrows from an owned value. Read more