Sha256: f2573ac7e4af05da0156bf14bb8a1551be632a2aec835d4b11f9cbb8da4bd7c3

Contents?: true

Size: 342 Bytes

Versions: 8

Compression:

Stored size: 342 Bytes

Contents

require "cose/security_message"

module COSE
  class Encrypt0 < SecurityMessage
    attr_reader :ciphertext

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

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

      @ciphertext = ciphertext
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
cose-0.8.0 lib/cose/encrypt0.rb
cose-0.7.0 lib/cose/encrypt0.rb
cose-0.6.1 lib/cose/encrypt0.rb
cose-0.6.0 lib/cose/encrypt0.rb
cose-0.5.0 lib/cose/encrypt0.rb
cose-0.4.1 lib/cose/encrypt0.rb
cose-0.4.0 lib/cose/encrypt0.rb
cose-0.3.0 lib/cose/encrypt0.rb