Class: Melos::Struct::KeyPackageTBS

Inherits:
Base
  • Object
show all
Defined in:
lib/melos/struct/structs.rb

Constant Summary collapse

STRUCT =
[
  [:version, :uint16],
  [:cipher_suite, :uint16],
  [:init_key, :vec], # HPKEPublicKey
  [:leaf_node, :class, Melos::Struct::LeafNode],
  [:extensions, :classes, Melos::Struct::Extension]
]

Instance Attribute Summary collapse

Method Summary

Methods inherited from Base

#deserialize_select_elem_with_context, #initialize, #raw

Constructor Details

This class inherits a constructor from Melos::Struct::Base

Instance Attribute Details

#cipher_suiteObject (readonly)

Returns the value of attribute cipher_suite.



350
351
352
# File 'lib/melos/struct/structs.rb', line 350

def cipher_suite
  @cipher_suite
end

#extensionsObject (readonly)

Returns the value of attribute extensions.



350
351
352
# File 'lib/melos/struct/structs.rb', line 350

def extensions
  @extensions
end

#init_keyObject (readonly)

Returns the value of attribute init_key.



350
351
352
# File 'lib/melos/struct/structs.rb', line 350

def init_key
  @init_key
end

#leaf_nodeObject (readonly)

Returns the value of attribute leaf_node.



350
351
352
# File 'lib/melos/struct/structs.rb', line 350

def leaf_node
  @leaf_node
end

#versionObject (readonly)

Returns the value of attribute version.



350
351
352
# File 'lib/melos/struct/structs.rb', line 350

def version
  @version
end