From 276cf1355435172eec400c66075a4f461ef6e0a6 Mon Sep 17 00:00:00 2001 From: Vincent Bernardoff Date: Wed, 18 Apr 2018 10:25:26 +0200 Subject: [PATCH] fix include when using ED25519_SHA512 --- src/monocypher.c | 1 - src/monocypher.h | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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; -- 2.47.3