-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathhalftime-hash.cpp
30 lines (23 loc) · 977 Bytes
/
halftime-hash.cpp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#include "halftime-hash.hpp"
using namespace halftime_hash;
size_t for_c_kEntropyBytesNeeded = kEntropyBytesNeeded;
extern "C" uint64_t for_c_HalftimeHashStyle512(
const uint64_t entropy[kEntropyBytesNeeded / sizeof(uint64_t)], const char input[],
size_t length) {
return HalftimeHashStyle512(entropy, input, length);
}
extern "C" uint64_t for_c_HalftimeHashStyle256(
const uint64_t entropy[kEntropyBytesNeeded / sizeof(uint64_t)], const char input[],
size_t length) {
return HalftimeHashStyle256(entropy, input, length);
}
extern "C" uint64_t for_c_HalftimeHashStyle128(
const uint64_t entropy[kEntropyBytesNeeded / sizeof(uint64_t)], const char input[],
size_t length) {
return HalftimeHashStyle128(entropy, input, length);
}
extern "C" uint64_t for_c_HalftimeHashStyle64(
const uint64_t entropy[kEntropyBytesNeeded / sizeof(uint64_t)], const char input[],
size_t length) {
return HalftimeHashStyle64(entropy, input, length);
}