Class: Net::SSH::Transport::Kex::EcdhSHA2NistP256

Inherits:
Abstract5656 show all
Defined in:
lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb

Overview

A key-exchange service implementing the “ecdh-sha2-nistp256” key-exchange algorithm. (defined in RFC 5656)

Direct Known Subclasses

EcdhSHA2NistP384, EcdhSHA2NistP521

Constant Summary

Constants included from Constants

Constants::DEBUG, Constants::DISCONNECT, Constants::IGNORE, Constants::KEXDH_GEX_GROUP, Constants::KEXDH_GEX_INIT, Constants::KEXDH_GEX_REPLY, Constants::KEXDH_GEX_REQUEST, Constants::KEXDH_INIT, Constants::KEXDH_REPLY, Constants::KEXECDH_INIT, Constants::KEXECDH_REPLY, Constants::KEXINIT, Constants::NEWKEYS, Constants::SERVICE_ACCEPT, Constants::SERVICE_REQUEST, Constants::UNIMPLEMENTED

Instance Attribute Summary

Attributes inherited from Abstract

#algorithms, #connection, #data, #dh

Attributes included from Loggable

#logger

Instance Method Summary collapse

Methods inherited from Abstract

#exchange_keys, #initialize

Methods included from Loggable

#debug, #error, #fatal, #info, #lwarn

Constructor Details

This class inherits a constructor from Net::SSH::Transport::Kex::Abstract

Instance Method Details

#curve_nameObject



14
15
16
# File 'lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb', line 14

def curve_name
  OpenSSL::PKey::EC::CurveNameAlias['nistp256']
end

#digesterObject



10
11
12
# File 'lib/net/ssh/transport/kex/ecdh_sha2_nistp256.rb', line 10

def digester
  OpenSSL::Digest::SHA256
end