How to use the padding.Bleichenbacher function in Padding

To help you get started, we’ve selected a few Padding examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github alexmgr / pybleach / padding.py View on Github external
def __worker_pool_stop(self):
    for p in self.__worker_pool:
      self.__task_queue.put(Bleichenbacher.__POISON_PILL)
      p.terminate()
      p.join(2)
    self.__logger.info("Stopped all worker threads in the pool")
    self.__worker_pool_running = False