def reset(self, test_sync = True):
        pyhsm.cmd.reset(self.stick)
        if test_sync:
            # Now verify we are in sync
            data = 'ekoeko'
            echo = self.echo(data)
            # XXX analyze 'echo' to see if we are in config mode, and produce a
            # nice exception if we are.
            return data == echo
        else:
            return True
If message is decryptable, add the extra flags.
dataset/ETHPy150Open Yubico/python-pyhsm/pyhsm/base.py/YHSM.reset--crossover with--dataset/ETHPy150Open ednapiranha/lexicrypt/lexicrypt/helper.py/is_decryptable