From febb5279f7bf3c86ec872c1b2ed1e024f73e64c5 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 24 Aug 2024 20:13:01 +0200 Subject: Add BLAKE via libblake>=1.1 (this version introduced libblake_init()) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- Makefile | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index fd52be7..5c5fbe6 100644 --- a/Makefile +++ b/Makefile @@ -18,6 +18,10 @@ SUPPORT_KECCAK = $(DEFAULT_SUPPORT) SUPPORT_SHA3 = $(DEFAULT_SUPPORT) SUPPORT_SHAKE = $(DEFAULT_SUPPORT) SUPPORT_RAWSHAKE = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE224 = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE256 = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE384 = $(DEFAULT_SUPPORT) +SUPPORT_BLAKE512 = $(DEFAULT_SUPPORT) CONFIGFILE = config.mk @@ -39,6 +43,9 @@ LIB_NAME = hashsum CPPFLAGS_LIBKECCAK_IF_SUPPORTED = LDFLAGS_LIBKECCAK_IF_SUPPORTED = +CPPFLAGS_LIBBLAKE_IF_SUPPORTED = +LDFLAGS_LIBBLAKE_IF_SUPPORTED = + include mk/md2=$(SUPPORT_MD2).mk include mk/md4=$(SUPPORT_MD4).mk include mk/md5=$(SUPPORT_MD5).mk @@ -52,6 +59,10 @@ include mk/keccak=$(SUPPORT_KECCAK).mk include mk/sha3=$(SUPPORT_SHA3).mk include mk/shake=$(SUPPORT_SHAKE).mk include mk/rawshake=$(SUPPORT_RAWSHAKE).mk +include mk/blake224=$(SUPPORT_SHA3).mk +include mk/blake256=$(SUPPORT_SHA3).mk +include mk/blake384=$(SUPPORT_SHA3).mk +include mk/blake512=$(SUPPORT_SHA3).mk CPPFLAGS_FULL =\ @@ -69,13 +80,19 @@ CPPFLAGS_FULL =\ $(CPPFLAGS_KECCAK)\ $(CPPFLAGS_SHA3)\ $(CPPFLAGS_SHAKE)\ - $(CPPFLAGS_RAWSHAKE) + $(CPPFLAGS_RAWSHAKE)\ + $(CPPFLAGS_LIBBLAKE_IF_SUPPORTED)\ + $(CPPFLAGS_BLAKE224)\ + $(CPPFLAGS_BLAKE256)\ + $(CPPFLAGS_BLAKE384)\ + $(CPPFLAGS_BLAKE512) LDFLAGS_FULL =\ $(LDFLAGS)\ $(LDFLAGS_SHA1)\ $(LDFLAGS_SHA2)\ - $(LDFLAGS_LIBKECCAK_IF_SUPPORTED) + $(LDFLAGS_LIBKECCAK_IF_SUPPORTED)\ + $(LDFLAGS_LIBBLAKE_IF_SUPPORTED) OBJ =\ @@ -115,6 +132,13 @@ OBJ =\ libhashsum_init_rawshake256_hasher.o\ libhashsum_init_rawshake512_hasher.o\ libhashsum_init_rawshake_hasher.o\ + libhashsum_init_blake224_hasher.o\ + libhashsum_init_blake256_hasher.o\ + libhashsum_init_blakes_hasher.o\ + libhashsum_init_blake384_hasher.o\ + libhashsum_init_blake512_hasher.o\ + libhashsum_init_blakeb_hasher.o\ + libhashsum_init_blake_hasher.o\ libhashsum_reverse_byte__.o\ libhashsum_init_keccak__.o @@ -145,7 +169,11 @@ TEST =\ sha3_224.t\ sha3_256.t\ sha3_384.t\ - sha3_512.t + sha3_512.t\ + blake224.t\ + blake256.t\ + blake384.t\ + blake512.t LOBJ = $(OBJ:.o=.lo) TOBJ = $(TEST:.t=.o) -- cgit v1.2.3-70-g09d2