Class OpenSSL::PKey::RSA
In: lib/net/ssh/transport/openssl.rb
lib/net/ssh/transport/openssl.rb
Parent: Object

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

Returns the signature for the given data.

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 74
74:       def ssh_do_sign(data)
75:         sign(OpenSSL::Digest::SHA1.new, data)
76:       end

Returns the signature for the given data.

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 74
74:       def ssh_do_sign(data)
75:         sign(OpenSSL::Digest::SHA1.new, data)
76:       end

Verifies the given signature matches the given data.

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 69
69:       def ssh_do_verify(sig, data)
70:         verify(OpenSSL::Digest::SHA1.new, sig, data)
71:       end

Verifies the given signature matches the given data.

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 69
69:       def ssh_do_verify(sig, data)
70:         verify(OpenSSL::Digest::SHA1.new, sig, data)
71:       end

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

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 59
59:       def ssh_type
60:         "ssh-rsa"
61:       end

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

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 59
59:       def ssh_type
60:         "ssh-rsa"
61:       end

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

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 64
64:       def to_blob
65:         @blob ||= Net::SSH::Buffer.from(:string, ssh_type, :bignum, e, :bignum, n).to_s
66:       end

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

[Source]

    # File lib/net/ssh/transport/openssl.rb, line 64
64:       def to_blob
65:         @blob ||= Net::SSH::Buffer.from(:string, ssh_type, :bignum, e, :bignum, n).to_s
66:       end

[Validate]