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



307
308
309
310
311
312
313
# File 'lib/rex/proto/crypto_asn1/cms.rb', line 307

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