summaryrefslogtreecommitdiff
path: root/toxcore/crypto_core.c
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-08-10 13:52:40 +0100
committeriphydf <iphydf@users.noreply.github.com>2016-08-10 13:52:40 +0100
commitfc330c1fa55003fa02928e27e146ab388fa65cdd (patch)
tree7d58d4554bcebd290c5601a4b94f655b33818701 /toxcore/crypto_core.c
parent131522c335cbb8470871478724732b85bc1bf6e8 (diff)
Silence/fix some compiler warnings.
Some of these (like the incompatible pointers one) are really annoying for later refactoring.
Diffstat (limited to 'toxcore/crypto_core.c')
-rw-r--r--toxcore/crypto_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/crypto_core.c b/toxcore/crypto_core.c
index a733c38e..3b379ca6 100644
--- a/toxcore/crypto_core.c
+++ b/toxcore/crypto_core.c
@@ -76,9 +76,9 @@ int public_key_valid(const uint8_t *public_key)
76 * encrypt/decrypt operation. 76 * encrypt/decrypt operation.
77 * enc_key has to be crypto_box_BEFORENMBYTES bytes long. 77 * enc_key has to be crypto_box_BEFORENMBYTES bytes long.
78 */ 78 */
79void encrypt_precompute(const uint8_t *public_key, const uint8_t *secret_key, uint8_t *enc_key) 79int encrypt_precompute(const uint8_t *public_key, const uint8_t *secret_key, uint8_t *enc_key)
80{ 80{
81 crypto_box_beforenm(enc_key, public_key, secret_key); 81 return crypto_box_beforenm(enc_key, public_key, secret_key);
82} 82}
83 83
84int encrypt_data_symmetric(const uint8_t *secret_key, const uint8_t *nonce, const uint8_t *plain, uint32_t length, 84int encrypt_data_symmetric(const uint8_t *secret_key, const uint8_t *nonce, const uint8_t *plain, uint32_t length,