aboutsummaryrefslogtreecommitdiff
path: root/src/hash/blake2.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/hash/blake2.c')
-rw-r--r--src/hash/blake2.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/hash/blake2.c b/src/hash/blake2.c
index aeb48ad..2da4cd0 100644
--- a/src/hash/blake2.c
+++ b/src/hash/blake2.c
@@ -3,17 +3,10 @@
#include <string.h>
#include <stdlib.h>
#include <math.h>
-#include "sha2-256.h"
-#include "blake2.h"
+#include "../crypto.h"
+//#include "blake2.h"
#include "../util.h"
-uint64_t rotr64(uint64_t w, unsigned c){
- return (w >> c) | (w << (64 - c));
-}
-uint32_t rotr32(uint32_t w, unsigned c){
- return (w >> c) | (w << (32 - c));
-}
-
void mix2b(uint64_t* a, uint64_t* b, uint64_t* c, uint64_t* d, int64_t x, int64_t y){
*a = *a + *b + x;
*d = rotr64((*d ^ *a), 32);