diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-24 20:51:45 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-08-24 20:51:45 +0100 |
commit | 12519216c16359ca5ca4cf735a9612985e1cb9e7 (patch) | |
tree | 429171d04ae94fa5b6007c58a64e842abb5adc3d /src/libcryptobox/cryptobox.c | |
parent | f40d6f8502561b84d71045378cab86cc4f462584 (diff) | |
download | rspamd-12519216c16359ca5ca4cf735a9612985e1cb9e7.tar.gz rspamd-12519216c16359ca5ca4cf735a9612985e1cb9e7.zip |
[Fix] Fix types check and types usage in lua_cryptobox
Diffstat (limited to 'src/libcryptobox/cryptobox.c')
-rw-r--r-- | src/libcryptobox/cryptobox.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcryptobox/cryptobox.c b/src/libcryptobox/cryptobox.c index 10f9fd975..cb875c026 100644 --- a/src/libcryptobox/cryptobox.c +++ b/src/libcryptobox/cryptobox.c @@ -1435,7 +1435,7 @@ rspamd_cryptobox_mac_bytes (enum rspamd_cryptobox_mode mode) } void -rspamd_cryptobox_hash_init (void *p, const guchar *key, gsize keylen) +rspamd_cryptobox_hash_init (rspamd_cryptobox_hash_state_t *p, const guchar *key, gsize keylen) { crypto_generichash_blake2b_state *st = cryptobox_align_ptr (p, _Alignof(crypto_generichash_blake2b_state)); @@ -1447,7 +1447,7 @@ rspamd_cryptobox_hash_init (void *p, const guchar *key, gsize keylen) * Update hash with data portion */ void -rspamd_cryptobox_hash_update (void *p, const guchar *data, gsize len) +rspamd_cryptobox_hash_update (rspamd_cryptobox_hash_state_t *p, const guchar *data, gsize len) { crypto_generichash_blake2b_state *st = cryptobox_align_ptr (p, _Alignof(crypto_generichash_blake2b_state)); @@ -1458,7 +1458,7 @@ rspamd_cryptobox_hash_update (void *p, const guchar *data, gsize len) * Output hash to the buffer of rspamd_cryptobox_HASHBYTES length */ void -rspamd_cryptobox_hash_final (void *p, guchar *out) +rspamd_cryptobox_hash_final (rspamd_cryptobox_hash_state_t *p, guchar *out) { crypto_generichash_blake2b_state *st = cryptobox_align_ptr (p, _Alignof(crypto_generichash_blake2b_state)); |