1
0
Fork 0
mirror of https://github.com/BLAKE3-team/BLAKE3 synced 2024-05-11 22:06:06 +02:00

Merge pull request #40 from erijo/cpp

Add extern "C" to blake3.h
This commit is contained in:
Samuel Neves 2020-01-24 00:42:41 +00:00 committed by GitHub
commit 214c70d8f3
Signed by: GitHub
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,10 @@
#include <stddef.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define BLAKE3_KEY_LEN 32
#define BLAKE3_OUT_LEN 32
#define BLAKE3_BLOCK_LEN 64
@ -41,4 +45,8 @@ void blake3_hasher_update(blake3_hasher *self, const void *input,
void blake3_hasher_finalize(const blake3_hasher *self, uint8_t *out,
size_t out_len);
#ifdef __cplusplus
}
#endif
#endif /* BLAKE3_H */