Class: PacketGen::Plugin::SMB2::Negotiate::EncryptionCap

Inherits:
Context
  • Object
show all
Defined in:
lib/packetgen/plugin/smb2/negotiate/context.rb

Overview

Specialized Context for ENCRYPTION_CAP type.

Constant Summary

Constants inherited from Context

Context::TYPES

Instance Attribute Summary collapse

Attributes inherited from Context

#data, #data_length, #pad, #reserved, #type

Method Summary

Methods inherited from Context

#calc_length, #human_type, #to_human

Instance Attribute Details

#cipher_countInteger

16-bit number of cipher algorithm in #ciphers

Returns:

  • (Integer)


104
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 104

define_field_before :pad, :cipher_count, PacketGen::Types::Int16le

#ciphersPacketGen::Types::ArrayOfInt16le

Array of 16-bit integer IDs specifying the supported encryption algorithms

Returns:

  • (PacketGen::Types::ArrayOfInt16le)


109
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 109

define_field_before :pad, :ciphers, PacketGen::Types::ArrayOfInt16le, builder: ->(h, t) { t.new(counter: h[:cipher_count]) }