|
MLBookProc 1.2.1
|
#include <Hasher.h>

Public Member Functions | |
| Hasher (const std::shared_ptr< AuxFunc > &af) | |
| Hasher constructor. | |
| std::string | buf_hashing (const std::string &buf) |
| Creates hash sum for given buffer. | |
| std::string | file_hashing (const std::filesystem::path &filepath) |
| Creates hash sum for given file. | |
| void | cancelAll () |
| Stops all operations. | |
Protected Attributes | |
| std::atomic< bool > | cancel |
| Stops all operations if true. | |
| std::function< void()> | stop_all_signal |
| Stop signal for heir classes. | |
The Hasher class.
This class contains methods for hash sums creating (Blake-256 algorithm).
| Hasher::Hasher | ( | const std::shared_ptr< AuxFunc > & | af | ) |
| std::string Hasher::buf_hashing | ( | const std::string & | buf | ) |
Creates hash sum for given buffer.
| buf | source buffer. |
| std::string Hasher::file_hashing | ( | const std::filesystem::path & | filepath | ) |
Creates hash sum for given file.
| filepath | absolute path to file to be hashed. |
|
protected |
Stops all operations if true.
|
protected |
Stop signal for heir classes.