2017-01-23 11:31:24 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
/***
|
|
|
|
* hash a string using SHA512
|
|
|
|
* @param input the input string
|
|
|
|
* @param input_length the length of the input string
|
2017-02-08 11:08:05 -05:00
|
|
|
* @param output where to place the results, should be 64 bytes
|
|
|
|
* @returns number of bytes written, or 0
|
2017-01-23 11:31:24 -05:00
|
|
|
*/
|
2017-03-06 19:03:04 -05:00
|
|
|
int libp2p_crypto_hashing_sha512(const unsigned char* input, size_t input_length, unsigned char* output);
|
2017-01-23 11:31:24 -05:00
|
|
|
|