mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 03:59:33 +00:00
Update tests/hash/main.cpp
Removing preprocessor macro and replacing it with constexpr. Co-authored-by: Jeffro <jeffreyryan@tutanota.com>
This commit is contained in:
parent
6bae91304e
commit
ea053b6c61
1 changed files with 1 additions and 1 deletions
|
@ -157,7 +157,7 @@ int main(int argc, char *argv[]) {
|
||||||
if (f == hash_blake2b) {
|
if (f == hash_blake2b) {
|
||||||
// blake2b does use different format and has key for hashing.
|
// blake2b does use different format and has key for hashing.
|
||||||
while (true) {
|
while (true) {
|
||||||
#define HASH_DATA_LEN 1024
|
static constexpr size_t HASH_DATA_LEN = 1024;
|
||||||
// data = key[BLAKE2B_KEYBYTES] || hash data[HASH_DATA_LEN]
|
// data = key[BLAKE2B_KEYBYTES] || hash data[HASH_DATA_LEN]
|
||||||
char data[BLAKE2B_KEYBYTES + HASH_DATA_LEN] = { 0 };
|
char data[BLAKE2B_KEYBYTES + HASH_DATA_LEN] = { 0 };
|
||||||
size_t datalen = 0;
|
size_t datalen = 0;
|
||||||
|
|
Loading…
Reference in a new issue