From 28df133ace7e3f0f899413972fde78a7f6a9c148 Mon Sep 17 00:00:00 2001 From: ame Date: Tue, 26 Mar 2024 12:12:53 -0500 Subject: blake! --- src/hash/blake2.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'src/hash/blake2.c') 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 #include #include -#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); -- cgit v1.2.3