]> git.codecow.com Git - Monocypher.git/commitdiff
fix include when using ED25519_SHA512
authorVincent Bernardoff <vb@luminar.eu.org>
Wed, 18 Apr 2018 08:25:26 +0000 (10:25 +0200)
committerVincent Bernardoff <vb@luminar.eu.org>
Wed, 18 Apr 2018 08:25:26 +0000 (10:25 +0200)
src/monocypher.c
src/monocypher.h

index 04656afb45edb9dea0bca8b0e6e7f1f8c67abc77..342c359a1a9c094b4575b6d8e6fa643a1470f237 100644 (file)
@@ -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
index 70326a9dfb9e05a02eb490d0d40b152cf5068d10..8c335270744b48e3f751ea7858aac9e034ca1d54 100644 (file)
@@ -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;