Struct osshkeys::keys::rsa::RsaKeyPair [−][src]
pub struct RsaKeyPair { /* fields omitted */ }
Expand description
Represent the RSA key pair
Implementations
Generate RSA key pair
The bits parameter should be within 1024 ~ 16384 bits or 0
to use default length (2048 bits).
Get the signature hash type
Set the signature hash type
Clone the public parts to generate public key
Trait Implementations
Performs the conversion.
Verify the data with a detached signature, returning true if the signature is not malformed
Hash the blob of the public key to generate the fingerprint