From ac965cf5e65a120134e5fe15be637a71ecd9ff60 Mon Sep 17 00:00:00 2001 From: ame Date: Fri, 12 Apr 2024 14:13:33 -0500 Subject: blake2s --- src/hash/blake.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/hash/blake.c') diff --git a/src/hash/blake.c b/src/hash/blake.c index bd73cef..84aa727 100644 --- a/src/hash/blake.c +++ b/src/hash/blake.c @@ -87,14 +87,6 @@ void compress256(uint32_t* hash, char *block, uint64_t compressed){ //printf("\n"); } -struct blake256_hash { - uint8_t* buffer; - size_t bufflen; - uint32_t total, *hash; - uint64_t compressed; -}; -#define blake224_hash blake256_hash - #define bs 64 struct blake256_hash blake256_init(){ struct blake256_hash a = {.bufflen = 0, .total = 0, .compressed = 0}; @@ -307,13 +299,6 @@ void compress512(uint64_t* hash, uint8_t *block, uint64_t compressed){ for(int i = 0; i < 16; i++) hash[i % 8] ^= v[i]; } -struct blake512_hash { - uint8_t* buffer; - size_t bufflen; - uint64_t total, *hash; - uint64_t compressed; -}; -#define blake384_hash blake512_hash //#undef bs #define bs_2 128 -- cgit v1.2.3