Creates a new DH
instance from scratch by generating the private and public components alike.
size is an integer representing the desired key size. Keys smaller than 1024 bits should be considered insecure.
generator is a small number > 1, typically 2 or 5.
Creates a new DSA
instance by generating a private/public key pair from scratch.
size is an integer representing the desired key size.
Creates a new EC
instance with a new random private and public key.
Generates an RSA
keypair. size is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure. exponent is an odd number normally 3, 17, or 65537.
Returns true
if the directory may be entered by CWD/CDUP.
Parses the received response and separates the reply code and the human readable reply text
Raises an exception if any arguments given.
Raises an exception if argument is not present.
Parses argument if given, or uses default value.
Returns nil if argument is not present or begins with ‘-’.