bkcrack 1.7.1
Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
SigintHandler Class Reference

Utility class to set a progress state to Progress::State::Canceled when SIGINT arrives. More...

#include <SigintHandler.hpp>

Public Member Functions

 SigintHandler (std::atomic< Progress::State > &destination)
 Enable the signal handler.
 ~SigintHandler ()
 Disable the signal handler.
 SigintHandler (const SigintHandler &other)=delete
 Deleted copy constructor.
auto operator= (const SigintHandler &other) -> SigintHandler &=delete
 Deleted assignment operator.

Detailed Description

Utility class to set a progress state to Progress::State::Canceled when SIGINT arrives.

Note
There should exist at most one instance of this class at any time.

The documentation for this class was generated from the following file: