Class: Rex::Proto::CryptoAsn1::Cms::ContentInfo

Inherits:
RASN1::Model
  • Object
show all
Defined in:
lib/rex/proto/crypto_asn1/cms.rb

Instance Method Summary collapse

Instance Method Details

#enveloped_dataObject



283
284
285
286
287
# File 'lib/rex/proto/crypto_asn1/cms.rb', line 283

def enveloped_data
  if self[:content_type].value == Rex::Proto::CryptoAsn1::OIDs::OID_CMS_ENVELOPED_DATA.value
    EnvelopedData.parse(self[:data].value)
  end
end

#signed_dataObject



289
290
291
292
293
# File 'lib/rex/proto/crypto_asn1/cms.rb', line 289

def signed_data
  if self[:content_type].value == Rex::Proto::CryptoAsn1::OIDs::OID_CMS_SIGNED_DATA.value
    SignedData.parse(self[:data].value)
  end
end