diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-16 21:25:30 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2022-08-16 21:33:50 +0200 |
commit | 0090695f7d79efa4f50398b55bc59317d1de1d75 (patch) | |
tree | 9c1adbf669c3cdca080bd8aea4cbb9a119bb2d18 /src/core/wee-crypto.h | |
parent | e61441081520bcada6de699229ce9af241302665 (diff) | |
download | weechat-0090695f7d79efa4f50398b55bc59317d1de1d75.zip |
api: add function crypto_hash_file
Diffstat (limited to 'src/core/wee-crypto.h')
-rw-r--r-- | src/core/wee-crypto.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/wee-crypto.h b/src/core/wee-crypto.h index fd7675b9e..863bccb23 100644 --- a/src/core/wee-crypto.h +++ b/src/core/wee-crypto.h @@ -26,6 +26,8 @@ extern int weecrypto_get_hash_algo (const char *hash_algo); extern int weecrypto_hash (const void *data, int data_size, int hash_algo, void *hash, int *hash_size); +extern int weecrypto_hash_file (const char *filename, int hash_algo, + void *hash, int *hash_size); extern int weecrypto_hash_pbkdf2 (const void *data, int data_size, int hash_algo, const void *salt, int salt_size, |