Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/BLAKE2/BLAKE2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMangix <rosenp@gmail.com>2013-03-12 15:09:30 +0400
committerMangix <rosenp@gmail.com>2013-03-12 15:09:30 +0400
commit4ebd63b7391b8f9bf884c4f0758cdbd4925f0865 (patch)
tree36d7d7552872c91f7e76c1f49c106166a61daf7d
parent7d7f92fa957db183adfe339a55c6f9dded646cff (diff)
Fix compilation if ref used in bench
-rw-r--r--ref/blake2b-ref.c7
-rw-r--r--ref/blake2s-ref.c7
2 files changed, 14 insertions, 0 deletions
diff --git a/ref/blake2b-ref.c b/ref/blake2b-ref.c
index a840bb8..624eaa9 100644
--- a/ref/blake2b-ref.c
+++ b/ref/blake2b-ref.c
@@ -358,6 +358,13 @@ int blake2b( uint8_t *out, const void *in, const void *key, const uint8_t outlen
return 0;
}
+#if defined(SUPERCOP)
+int crypto_hash( unsigned char *out, unsigned char *in, unsigned long long inlen )
+{
+ return blake2b( out, in, NULL, BLAKE2B_OUTBYTES, inlen, 0 );
+}
+#endif
+
#if defined(BLAKE2B_SELFTEST)
#include <string.h>
#include "blake2-kat.h"
diff --git a/ref/blake2s-ref.c b/ref/blake2s-ref.c
index 2be229e..793fd97 100644
--- a/ref/blake2s-ref.c
+++ b/ref/blake2s-ref.c
@@ -346,6 +346,13 @@ int blake2s( uint8_t *out, const void *in, const void *key, const uint8_t outlen
return 0;
}
+#if defined(SUPERCOP)
+int crypto_hash( unsigned char *out, unsigned char *in, unsigned long long inlen )
+{
+ return blake2s( out, in, NULL, BLAKE2B_OUTBYTES, inlen, 0 );
+}
+#endif
+
#if defined(BLAKE2S_SELFTEST)
#include <string.h>
#include "blake2-kat.h"