Sha256: adbac1ce3cf712d66edd07d891987654372e0143ad2dfcc11a659e9455185c2e
Contents?: true
Size: 521 Bytes
Versions: 9
Compression:
Stored size: 521 Bytes
Contents
# frozen_string_literal: true require "cose/security_message" require "cose/recipient" module COSE class Encrypt < SecurityMessage attr_reader :ciphertext, :recipients def self.keyword_arguments_for_initialize(decoded) { ciphertext: decoded[0], recipients: decoded[1].map { |s| COSE::Recipient.deserialize(s) } } end def initialize(ciphertext:, recipients:, **keyword_arguments) super(**keyword_arguments) @ciphertext = ciphertext @recipients = recipients end end end
Version data entries
9 entries across 9 versions & 1 rubygems