Type:
Class

DSA, the Digital Signature Algorithm, is specified in NIST's FIPS 186-3. It is an asymmetric public key algorithm that may be used similar to e.g. RSA. Please note that for OpenSSL versions prior to 1.0.0 the digest algorithms OpenSSL::Digest::DSS (equivalent to SHA) or OpenSSL::Digest::DSS1 (equivalent to SHA-1) must be used for issuing signatures with a DSA key using OpenSSL::PKey#sign. Starting with OpenSSL 1.0.0, digest algorithms are no longer restricted, any Digest may be used for signing.

generate
  • References/Ruby on Rails/Ruby/Classes/OpenSSL/OpenSSL::PKey/OpenSSL::PKey::DSA

DSA.generate(size) â dsa Class Public methods Creates a new

2025-01-10 15:47:30
export
  • References/Ruby on Rails/Ruby/Classes/OpenSSL/OpenSSL::PKey/OpenSSL::PKey::DSA

dsa.to_pem([cipher, password]) â aString Instance Public methods Encodes this

2025-01-10 15:47:30
to_pem
  • References/Ruby on Rails/Ruby/Classes/OpenSSL/OpenSSL::PKey/OpenSSL::PKey::DSA

to_pem(p1 = v1, p2 = v2) Instance Public methods Alias for:

2025-01-10 15:47:30