Class: TPM::PublicArea

Inherits:
Object
  • Object
show all
Defined in:
lib/tpm/public_area.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object) ⇒ PublicArea

Returns a new instance of PublicArea.



15
16
17
# File 'lib/tpm/public_area.rb', line 15

def initialize(object)
  @object = object
end

Instance Attribute Details

#objectObject (readonly)

Returns the value of attribute object.



13
14
15
# File 'lib/tpm/public_area.rb', line 13

def object
  @object
end

Instance Method Details

#ecc?Boolean

Returns:

  • (Boolean)


27
28
29
# File 'lib/tpm/public_area.rb', line 27

def ecc?
  t_public.ecc?
end

#keyObject



23
24
25
# File 'lib/tpm/public_area.rb', line 23

def key
  t_public.key
end

#nameObject



19
20
21
# File 'lib/tpm/public_area.rb', line 19

def name
  [name_alg].pack("n") + name_digest
end

#openssl_curve_nameObject



31
32
33
# File 'lib/tpm/public_area.rb', line 31

def openssl_curve_name
  t_public.openssl_curve_name
end