def parse_result(self, data):
<EOL>fmt = "<STR_LIT>" % (pyhsm.defines.YSM_AEAD_NONCE_SIZE)<EOL>nonce, key_handle, self.status = struct.unpack(fmt, data)<EOL>pyhsm.util.validate_cmd_response_str('<STR_LIT>', nonce, self.nonce)<EOL>pyhsm.util.validate_cmd_response_hex('<STR_LIT>', key_handle, self.key_handle)<EOL>if self.status == pyhsm.defines.YSM_STATUS_OK:<EOL><INDENT>return True<EOL><DEDENT>else:<EOL><INDENT>raise pyhsm.exception.YHSM_CommandFailed(pyhsm.defines.cmd2str(self.command), self.status)<EOL><DEDENT>
Parse result of L{pyhsm.defines.YSM_TEMP_KEY_LOAD} command.

@return: Only returns (True) on successful load
@rtype: bool

@raise pyhsm.exception.YHSM_CommandFailed: YubiHSM failed to load key