Sha256: 6e7cf93eb16b2920422d5e69b01935c0be50ce4fc42268e723f105315b1ad56e

Contents?: true

Size: 373 Bytes

Versions: 9

Compression:

Stored size: 373 Bytes

Contents

# frozen_string_literal: true

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

9 entries across 9 versions & 1 rubygems

Version Path
cose-1.3.1 lib/cose/encrypt0.rb
cose-1.3.0 lib/cose/encrypt0.rb
cose-1.2.1 lib/cose/encrypt0.rb
cose-1.2.0 lib/cose/encrypt0.rb
cose-1.1.0 lib/cose/encrypt0.rb
cose-1.0.0 lib/cose/encrypt0.rb
cose-0.11.0 lib/cose/encrypt0.rb
cose-0.10.0 lib/cose/encrypt0.rb
cose-0.9.0 lib/cose/encrypt0.rb