bkcrack: src/cli/SigintHandler.hpp Source File

bkcrack 1.8.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 <bkcrack/Progress.hpp>
5
9 class SigintHandler
10{
11public:
13 explicit SigintHandler(std::atomic<Progress::State>& destination);
14
16 ~SigintHandler();
17
19 SigintHandler(const SigintHandler& other) = delete;
20
22 auto operator=(const SigintHandler& other) -> SigintHandler& = delete;
23};
24
25#endif // BKCRACK_SIGINTHANDLER_HPP
SigintHandler::~SigintHandler
~SigintHandler()
Disable the signal handler.
SigintHandler::operator=
auto operator=(const SigintHandler &other) -> SigintHandler &=delete
Deleted assignment operator.
SigintHandler::SigintHandler
SigintHandler(std::atomic< Progress::State > &destination)
Enable the signal handler.
SigintHandler::SigintHandler
SigintHandler(const SigintHandler &other)=delete
Deleted copy constructor.