Sha256: dff035366c307d154fc3b1c9b260fd11b19f5d4494d974e1bab85e3f776d34b6

Contents?: true

Size: 1.2 KB

Versions: 14

Compression:

Stored size: 1.2 KB

Contents

# -*- coding: binary -*-

module Rex
module Proto
module IPMI

class RAKP2 < BitStruct
  unsigned :rmcp_version,      8,     "RMCP Version"
  unsigned :rmcp_padding,      8,     "RMCP Padding"
  unsigned :rmcp_sequence,     8,     "RMCP Sequence"
  unsigned :rmcp_mtype,    1,     "RMCP Message Type"
  unsigned :rmcp_class,    7,     "RMCP Message Class"

  unsigned :session_auth_type,  8,     "Authentication Type"

  unsigned :session_payload_encrypted,  1,     "Session Payload Encrypted"
  unsigned :session_payload_authenticated,  1,     "Session Payload Authenticated"
  unsigned :session_payload_type,  6,     "Session Payload Type", :endian => 'little'

  unsigned :session_id,  32,     "Session ID"
  unsigned :session_sequence,  32,     "Session Sequence Number"
  unsigned :message_length,  16,     "Message Length", :endian => "little"

  unsigned :ignored1, 8, "Ignored"
  unsigned :error_code, 8, "RMCP Error Code"
  unsigned :ignored2, 16, "Ignored"
  char :console_session_id, 32, "Console Session ID"
  char :bmc_random_id,  128,     "BMC Random ID"
  char :bmc_guid,  128,     "RAKP2 Hash 2 (nulls)"
  char :hmac_sha1,  160,     "HMAC_SHA1 Output"
  rest :stuff, "The rest of the stuff"
end

end
end
end

Version data entries

14 entries across 14 versions & 3 rubygems

Version Path
rex-2.0.13 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.12 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.11 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.10 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.9 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.8 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.7 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.5 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.4 lib/rex/proto/ipmi/rakp2.rb
dstruct-0.0.1 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.3 lib/rex/proto/ipmi/rakp2.rb
librex-0.0.999 lib/rex/proto/ipmi/rakp2.rb
rex-2.0.2 lib/rex/proto/ipmi/rakp2.rb
librex-0.0.71 lib/rex/proto/ipmi/rakp2.rb