mirror of
https://github.com/jedisct1/libsodium.git
synced 2026-08-25 08:37:13 +09:00
Add crypto_hash_primitive()
This commit is contained in:
@@ -7,3 +7,8 @@ crypto_hash(unsigned char *out, const unsigned char *in,
|
||||
{
|
||||
return crypto_hash_sha512(out, in, inlen);
|
||||
}
|
||||
|
||||
const char *
|
||||
crypto_hash_primitive(void) {
|
||||
return crypto_hash_sha512_primitive();
|
||||
}
|
||||
|
||||
@@ -19,6 +19,9 @@ SODIUM_EXPORT
|
||||
int crypto_hash(unsigned char *out, const unsigned char *in,
|
||||
unsigned long long inlen);
|
||||
|
||||
SODIUM_EXPORT
|
||||
const char *crypto_hash_primitive(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user