Class: TTTLS13::EchState

Inherits:
Object
  • Object
show all
Defined in:
lib/tttls1.3/ech.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(maximum_name_length, config_id, cipher_suite, public_name, ctx) ⇒ EchState

Returns a new instance of EchState.

Parameters:

  • maximum_name_length (Integer)
  • config_id (Integer)
  • cipher_suite (HpkeSymmetricCipherSuite)
  • public_name (String)
  • ctx (HPKE::ContextS)


350
351
352
353
354
355
356
357
358
359
360
# File 'lib/tttls1.3/ech.rb', line 350

def initialize(maximum_name_length,
               config_id,
               cipher_suite,
               public_name,
               ctx)
  @maximum_name_length = maximum_name_length
  @config_id = config_id
  @cipher_suite = cipher_suite
  @public_name = public_name
  @ctx = ctx
end

Instance Attribute Details

#cipher_suiteObject (readonly)

Returns the value of attribute cipher_suite.



343
344
345
# File 'lib/tttls1.3/ech.rb', line 343

def cipher_suite
  @cipher_suite
end

#config_idObject (readonly)

Returns the value of attribute config_id.



343
344
345
# File 'lib/tttls1.3/ech.rb', line 343

def config_id
  @config_id
end

#ctxObject (readonly)

Returns the value of attribute ctx.



343
344
345
# File 'lib/tttls1.3/ech.rb', line 343

def ctx
  @ctx
end

#maximum_name_lengthObject (readonly)

Returns the value of attribute maximum_name_length.



343
344
345
# File 'lib/tttls1.3/ech.rb', line 343

def maximum_name_length
  @maximum_name_length
end

#public_nameObject (readonly)

Returns the value of attribute public_name.



343
344
345
# File 'lib/tttls1.3/ech.rb', line 343

def public_name
  @public_name
end