This class is originally defined in the OpenSSL module. As needed, methods have been added to it by the Net::SSH module for convenience in dealing with SSH functionality.

Methods
Public Instance methods
ssh_do_sign( data )

Returns the signature for the given data.

    # File lib/net/ssh/util/openssl.rb, line 88
88:       def ssh_do_sign( data )
89:         sign( OpenSSL::Digest::SHA1.new, data )
90:       end
ssh_do_verify( sig, data )

Verifies the given signature matches the given data.

    # File lib/net/ssh/util/openssl.rb, line 83
83:       def ssh_do_verify( sig, data )
84:         verify( OpenSSL::Digest::SHA1.new, sig, data )
85:       end
ssh_type()

Returns "ssh-rsa", which is the description of this key type used by the SSH2 protocol.

    # File lib/net/ssh/util/openssl.rb, line 70
70:       def ssh_type
71:         "ssh-rsa"
72:       end
to_blob()

Converts the key to a blob, according to the SSH2 protocol.

    # File lib/net/ssh/util/openssl.rb, line 75
75:       def to_blob
76:         buffer = Net::SSH::Util::WriterBuffer.new
77:         buffer.write_bignum( e )
78:         buffer.write_bignum( n )
79:         return buffer.to_s
80:       end