#include <Scrypt.hpp>
Definition at line 132 of file Scrypt.hpp.
◆ Hash() [1/2]
Scrypt hash the in byte vector.
A random salt is generated.
- Parameters
-
- Returns
- A ScryptResult object providing all information about the hash.
Definition at line 44 of file Scrypt.cpp.
◆ Hash() [2/2]
Wrapper around low-level hash function.
- Parameters
-
| in | vector to hash |
| salt | Salt to use when hashing. |
| hashlen | the length of the output hash |
- Returns
- Binary hash
Definition at line 25 of file Scrypt.cpp.
◆ Verify()
| bool Scrypt::Verify |
( |
const std::vector< uint8_t > & |
in, |
|
|
const ScryptResult & |
expected |
|
) |
| |
|
static |
Verify that the input in, when hashed, correspond to the expected ScryptResult.
- Parameters
-
- Returns
- Wether or not the hash match.
Definition at line 49 of file Scrypt.cpp.
◆ default_
| ScryptParam Scrypt::default_ = {.N = 16384, .r = 8, .p = 1, .len = 64} |
|
staticprivate |
The documentation for this class was generated from the following files: