Add crypto_hash_primitive()

This commit is contained in:
Frank Denis 2014-02-23 20:24:59 -08:00
parent ffe39ab544
commit 639a92ebe7
2 changed files with 8 additions and 0 deletions

View File

@ -7,3 +7,8 @@ crypto_hash(unsigned char *out, const unsigned char *in,
{ {
return crypto_hash_sha512(out, in, inlen); return crypto_hash_sha512(out, in, inlen);
} }
const char *
crypto_hash_primitive(void) {
return crypto_hash_sha512_primitive();
}

View File

@ -19,6 +19,9 @@ SODIUM_EXPORT
int crypto_hash(unsigned char *out, const unsigned char *in, int crypto_hash(unsigned char *out, const unsigned char *in,
unsigned long long inlen); unsigned long long inlen);
SODIUM_EXPORT
const char *crypto_hash_primitive(void);
#ifdef __cplusplus #ifdef __cplusplus
} }
#endif #endif