def parse_result(self, data):
<EOL>public_id,key_handle,self.status = struct.unpack("<STR_LIT>" % (pyhsm.defines.YSM_AEAD_NONCE_SIZE), data)<EOL>pyhsm.util.validate_cmd_response_str('<STR_LIT>', public_id, self.public_id)<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>
Return True if the AEAD was stored sucessfully.