From: Vincent Bernardoff Date: Wed, 18 Apr 2018 08:25:26 +0000 (+0200) Subject: fix include when using ED25519_SHA512 X-Git-Url: https://git.codecow.com/?a=commitdiff_plain;h=276cf1355435172eec400c66075a4f461ef6e0a6;p=Monocypher.git fix include when using ED25519_SHA512 --- diff --git a/src/monocypher.c b/src/monocypher.c index 04656af..342c359 100644 --- a/src/monocypher.c +++ b/src/monocypher.c @@ -8,7 +8,6 @@ // option for full ed25519 compatibility. To use with SHA-512, compile // with option -DED25519_SHA512 and provide the "sha512" header. #ifdef ED25519_SHA512 - #include "sha512.h" #define HASH crypto_sha512 #else #define HASH crypto_blake2b diff --git a/src/monocypher.h b/src/monocypher.h index 70326a9..8c33527 100644 --- a/src/monocypher.h +++ b/src/monocypher.h @@ -48,6 +48,7 @@ typedef struct { // Signatures (EdDSA) #ifdef ED25519_SHA512 +#include "sha512.h" typedef crypto_sha512_ctx crypto_hash_ctx; #else typedef crypto_blake2b_ctx crypto_hash_ctx;