bkcrack 1.7.1
Crack legacy zip encryption with Biham and Kocher's known plaintext attack.
SigintHandler.hpp
1#ifndef BKCRACK_SIGINTHANDLER_HPP
2#define BKCRACK_SIGINTHANDLER_HPP
3
4#include "Progress.hpp"
5
10{
11public:
13 explicit SigintHandler(std::atomic<Progress::State>& destination);
14
17
19 SigintHandler(const SigintHandler& other) = delete;
20
22 auto operator=(const SigintHandler& other) -> SigintHandler& = delete;
23};
24
25#endif // BKCRACK_SIGINTHANDLER_HPP
~SigintHandler()
Disable the signal handler.
auto operator=(const SigintHandler &other) -> SigintHandler &=delete
Deleted assignment operator.
SigintHandler(std::atomic< Progress::State > &destination)
Enable the signal handler.
SigintHandler(const SigintHandler &other)=delete
Deleted copy constructor.