Class: Rex::Proto::CryptoAsn1::Cms::EncapsulatedContentInfo

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

Instance Method Summary collapse

Instance Method Details

#econtentObject



256
257
258
259
260
261
262
# File 'lib/rex/proto/crypto_asn1/cms.rb', line 256

def econtent
  if self[:econtent_type].value == Rex::Proto::CryptoAsn1::OIDs::OID_DIFFIE_HELLMAN_KEYDATA.value
    Rex::Proto::Kerberos::Model::Pkinit::KdcDhKeyInfo.parse(self[:econtent].value)
  elsif self[:econtent_type].value == Rex::Proto::Kerberos::Model::OID::PkinitAuthData
    Rex::Proto::Kerberos::Model::Pkinit::AuthPack.parse(self[:econtent].value)
  end
end