make _sha256 a static function

This commit is contained in:
Francois Perrad 2018-06-01 20:59:04 +02:00
parent b7493253ea
commit 772a9e68cf

View File

@ -19,7 +19,7 @@
#ifdef LTC_XSALSA20
#ifdef LTC_SHA256
int _sha256(unsigned char *hash, const unsigned char *data, const int datalen) {
static int _sha256(unsigned char *hash, const unsigned char *data, const int datalen) {
hash_state md;
sha256_init(&md);
sha256_process(&md, data, datalen);