summaryrefslogtreecommitdiff
path: root/toxencryptsave
diff options
context:
space:
mode:
authoriphydf <iphydf@users.noreply.github.com>2016-12-19 15:27:46 +0000
committeriphydf <iphydf@users.noreply.github.com>2016-12-22 10:26:59 +0000
commit2328cb74abccd563f0cd8d14d30e5314822d321e (patch)
treeb61581536d448a8846dc333b44c9b56e24605a1f /toxencryptsave
parentce29c8e7ec91d95167b2dea3aee9fd1ae1aac254 (diff)
Improve documentation of crypto_core.
Diffstat (limited to 'toxencryptsave')
-rw-r--r--toxencryptsave/toxencryptsave.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/toxencryptsave/toxencryptsave.c b/toxencryptsave/toxencryptsave.c
index 360952ad..bd56e780 100644
--- a/toxencryptsave/toxencryptsave.c
+++ b/toxencryptsave/toxencryptsave.c
@@ -33,8 +33,11 @@
33#ifdef VANILLA_NACL 33#ifdef VANILLA_NACL
34#include <crypto_hash_sha256.h> 34#include <crypto_hash_sha256.h>
35#include "crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h" 35#include "crypto_pwhash_scryptsalsa208sha256/crypto_pwhash_scryptsalsa208sha256.h"
36#endif 36#else
37#include <sodium.h> 37#include <sodium.h>
38#endif
39
40#include <string.h>
38 41
39#if TOX_PASS_SALT_LENGTH != crypto_pwhash_scryptsalsa208sha256_SALTBYTES 42#if TOX_PASS_SALT_LENGTH != crypto_pwhash_scryptsalsa208sha256_SALTBYTES
40#error TOX_PASS_SALT_LENGTH is assumed to be equal to crypto_pwhash_scryptsalsa208sha256_SALTBYTES 43#error TOX_PASS_SALT_LENGTH is assumed to be equal to crypto_pwhash_scryptsalsa208sha256_SALTBYTES