Class: TPM::PublicArea
- Inherits:
-
Object
- Object
- TPM::PublicArea
- Defined in:
- lib/tpm/public_area.rb
Instance Attribute Summary collapse
-
#object ⇒ Object
readonly
Returns the value of attribute object.
Instance Method Summary collapse
- #ecc? ⇒ Boolean
-
#initialize(object) ⇒ PublicArea
constructor
A new instance of PublicArea.
- #key ⇒ Object
- #name ⇒ Object
- #openssl_curve_name ⇒ Object
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
#object ⇒ Object (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
27 28 29 |
# File 'lib/tpm/public_area.rb', line 27 def ecc? t_public.ecc? end |
#key ⇒ Object
23 24 25 |
# File 'lib/tpm/public_area.rb', line 23 def key t_public.key end |
#name ⇒ Object
19 20 21 |
# File 'lib/tpm/public_area.rb', line 19 def name [name_alg].pack("n") + name_digest end |
#openssl_curve_name ⇒ Object
31 32 33 |
# File 'lib/tpm/public_area.rb', line 31 def openssl_curve_name t_public.openssl_curve_name end |