def extract_rqSeq_rqLUN(data): rqSeq_rqLUN = data[8:10] bits_rqSeq_rqLUN = IPMIHelper.get_bits(rqSeq_rqLUN) return "".join(bits_rqSeq_rqLUN[2:]), "".join(bits_rqSeq_rqLUN[0:2])
def extract_netFn_rsLUN(data): netFn_LUN = data[2:4] bits_netFn_LUN = IPMIHelper.get_bits(netFn_LUN) return "".join(bits_netFn_LUN[2:]), "".join(bits_netFn_LUN[0:2])
def get_requested_max_privilege_level(self): max_privilege_level = self.requested_max_privilege bits = IPMIHelper.get_bits(max_privilege_level) max_privilege_level_bits = bits[0:3] return "".join(max_privilege_level_bits[::-1])
def get_requested_max_privilege_type(self): max_privilege_type = self.requested_max_privilege bits = IPMIHelper.get_bits(max_privilege_type) max_privilege_type_bit = bits[4] return max_privilege_type_bit
def get_confidentiality_payload_integrity_algo(self): byte_hex = self.confidentiality_payload[8:10] bits = IPMIHelper.get_bits(byte_hex) auth_algorithm = bits[0:5] return "".join(auth_algorithm[::-1])
def get_auth_payload_auth_algo(self): byte_hex = self.auth_payload[8:10] bits = IPMIHelper.get_bits(byte_hex) auth_algorithm = bits[0:5] return "".join(auth_algorithm[::-1])