Class: COSE::Encrypt0

Inherits:
SecurityMessage show all
Defined in:
lib/cose/encrypt0.rb

Instance Attribute Summary collapse

Attributes inherited from SecurityMessage

#protected_headers, #unprotected_headers

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from SecurityMessage

deserialize

Constructor Details

#initialize(ciphertext:, **keyword_arguments) ⇒ Encrypt0

Returns a new instance of Encrypt0


11
12
13
14
15
# File 'lib/cose/encrypt0.rb', line 11

def initialize(ciphertext:, **keyword_arguments)
  super(**keyword_arguments)

  @ciphertext = ciphertext
end

Instance Attribute Details

#ciphertextObject (readonly)

Returns the value of attribute ciphertext


5
6
7
# File 'lib/cose/encrypt0.rb', line 5

def ciphertext
  @ciphertext
end

Class Method Details

.keyword_arguments_for_initialize(decoded) ⇒ Object


7
8
9
# File 'lib/cose/encrypt0.rb', line 7

def self.keyword_arguments_for_initialize(decoded)
  { ciphertext: decoded[0] }
end