class SSLyze::XML::Protocol::CipherSuite::KeyExchange

Key exchange information.

Public Class Methods

new(node) click to toggle source

Initializes the key exchange information.

@param [Nokogiri::XML::Node] node

The `<keyExchange>` information.
# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 18
def initialize(node)
  @node = node
end

Public Instance Methods

a() click to toggle source

@return [String, nil]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 25
def a
  @a ||= @node['A']
end
b() click to toggle source

@return [String, nil]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 32
def b
  @b ||= @node['B']
end
cofactor() click to toggle source

@return [Integer, nil]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 39
def cofactor
  @cofactor ||= if (value = @node['Cofactor'])
                  value.to_i
                end
end
dh?() click to toggle source

Determines if DH key exchange was used.

@return [Boolean]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 110
def dh?
  type == :DH
end
ecdhe?() click to toggle source

Determines if ECDHE key exchange was used.

@return [Boolean]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 119
def ecdhe?
  type == :ECDHE
end
field_type() click to toggle source

@return [String, nil]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 48
def field_type
  @field_type ||= @node['Field_Type']
end
generator() click to toggle source

@return [String]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 55
def generator
  @generator ||= @node['Generator']
end
generator_type() click to toggle source

@return [Symbol, nil]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 62
def generator_type
  @generator_type ||= if (value = @node['GeneratorType'])
                        value.to_sym
                      end
end
group_size() click to toggle source

@return [Integer]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 71
def group_size
  @group_size ||= @node['GroupSize'].to_i
end
order() click to toggle source

@return [String, nil]

@since 1.0.0

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 80
def order
  @order ||= @node['Order']
end
prime() click to toggle source

@return [String, nil]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 87
def prime
  @prime ||= @node['Prime']
end
seed() click to toggle source

@return [String, nil]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 94
def seed
  @seed ||= @node['Seed']
end
type() click to toggle source

@return [Symbol]

# File lib/sslyze/xml/protocol/cipher_suite/key_exchange.rb, line 101
def type
  @type ||= @node['Type'].to_sym
end