diff options
| author | ame <[email protected]> | 2024-03-26 12:12:53 -0500 |
|---|---|---|
| committer | ame <[email protected]> | 2024-03-26 12:12:53 -0500 |
| commit | dc51f7b892ff5a6790a7d728a3acac363588ede2 (patch) | |
| tree | b9a1fe4e4a3fb6306ca3d9b48d50ff2692fc3aac /src/hash/blake2.c | |
| parent | eb6608e16d253ded9ee3979f236b68d4988c1da5 (diff) | |
blake!
Diffstat (limited to 'src/hash/blake2.c')
| -rw-r--r-- | src/hash/blake2.c | 11 |
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);
|
