tweetnacl integration

This commit is contained in:
Frank
2014-05-01 21:24:20 +02:00
parent 49f18d55cb
commit e5a294ec02
13 changed files with 1236 additions and 9 deletions

View File

@@ -23,8 +23,12 @@
#include "platform.hpp"
#ifdef HAVE_LIBSODIUM
#include <sodium.h>
#ifdef HAVE_TWEETNACL
#include "tweetnacl_base.h"
#include "randombytes.h"
#else
#include "sodium.h"
#endif
#if crypto_box_NONCEBYTES != 24 \
|| crypto_box_PUBLICKEYBYTES != 32 \
|| crypto_box_SECRETKEYBYTES != 32 \
@@ -118,4 +122,3 @@ namespace zmq
#endif
#endif