|
iota.lib.cpp
IOTA C++ Library
|
#include <curl.hpp>
Public Member Functions | |
| Curl () | |
| ~Curl ()=default | |
| void | reset () |
| void | absorb (const Types::Trits &trits, std::size_t offset=0, std::size_t length=0) |
| void | squeeze (Types::Trits &trits, std::size_t offset=0, std::size_t length=0) |
Hashing algorithm. Trits are absorbed by the sponge function and later squeezed to provide message digest, derive keys etc.
| IOTA::Crypto::Curl::Curl | ( | ) |
Default ctor.
|
default |
Default dtor.
| void IOTA::Crypto::Curl::absorb | ( | const Types::Trits & | trits, |
| std::size_t | offset = 0, |
||
| std::size_t | length = 0 |
||
| ) |
Absorb the input into the current state.
| trits | input trits to be applied (absorbed) on current state. |
| offset | offset at which the current state should be modified. |
| length | length of the given input that should be used for absorption. |
| void IOTA::Crypto::Curl::reset | ( | ) |
Reset current state of the crypto algorithm.
| void IOTA::Crypto::Curl::squeeze | ( | Types::Trits & | trits, |
| std::size_t | offset = 0, |
||
| std::size_t | length = 0 |
||
| ) |
Squeeze the current state to the given input/output.
| trits | input trits to be updated (squeezed) based on current state. |
| offset | offset at which the input trists should be modified. |
| length | length of the current state that should be used for squeezing. |
1.8.14