Class: PacketGen::Plugin::SMB2::Negotiate::EncryptionCap
- Inherits:
-
Context
- Object
- Types::Fields
- Context
- PacketGen::Plugin::SMB2::Negotiate::EncryptionCap
- Defined in:
- lib/packetgen/plugin/smb2/negotiate/context.rb
Overview
Specialized Context for ENCRYPTION_CAP type.
Constant Summary
Constants inherited from Context
Instance Attribute Summary collapse
-
#cipher_count ⇒ Integer
16-bit number of cipher algorithm in #ciphers.
-
#ciphers ⇒ PacketGen::Types::ArrayOfInt16le
Array of 16-bit integer IDs specifying the supported encryption algorithms.
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_count ⇒ Integer
16-bit number of cipher algorithm in #ciphers
104 |
# File 'lib/packetgen/plugin/smb2/negotiate/context.rb', line 104 define_field_before :pad, :cipher_count, PacketGen::Types::Int16le |
#ciphers ⇒ PacketGen::Types::ArrayOfInt16le
Array of 16-bit integer IDs specifying the supported encryption algorithms
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]) } |