Sha256: fd114d6e4d7c7c7669e4bf68a083a80ca5ee1cd781e9b56342e35984972a1455
Contents?: true
Size: 397 Bytes
Versions: 8
Compression:
Stored size: 397 Bytes
Contents
require "cbor" require "cose/security_message" module COSE class Mac0 < SecurityMessage attr_reader :payload, :tag def self.keyword_arguments_for_initialize(decoded) { payload: CBOR.decode(decoded[0]), tag: decoded[1] } end def initialize(payload:, tag:, **keyword_arguments) super(**keyword_arguments) @payload = payload @tag = tag end end end
Version data entries
8 entries across 8 versions & 1 rubygems