class

OpenSSL::PKey::DSA

Inherits OpenSSL::PKey / Reference / Object

Constructors

generate(size : Int = 4096) : DSA
Source
new(dsa : LibCrypto::DSA, keyType = KeyType::All)
Source
new(size : Int = 4096)
Source

Class methods

parse_private_key(private_key : String, password = nil)
Source
parse_public_key(public_key : String, password = nil)
Source

Instance methods

finalize
Source
modulus_size
Source
private_key
Source
private_key!
Source
public_key
Source
public_key!
Source
to_io(io : IO, keyType : KeyType, cipher = nil, password = nil)
Source
to_io(io : IO, cipher = nil, password = nil)
Source
to_s(keyType : KeyType, cipher = nil, password = nil)
Source
to_s(cipher = nil, password = nil)

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source
to_unsafe
Source