diff --git a/pkg/monocypher/Makefile b/pkg/monocypher/Makefile index fcd96b64c9..c0c354c90d 100644 --- a/pkg/monocypher/Makefile +++ b/pkg/monocypher/Makefile @@ -1,6 +1,6 @@ PKG_NAME=monocypher PKG_URL=https://github.com/LoupVaillant/Monocypher -PKG_VERSION=d9cc2aea29158971ed4b7dc074efdcb35e7183d5 +PKG_VERSION=ff334e288a667c5cd8500c04d1e2ebd601b9f215 PKG_LICENSE=CC-0 include $(RIOTBASE)/pkg/pkg.mk diff --git a/pkg/monocypher/Makefile.dep b/pkg/monocypher/Makefile.dep index 2a90b71378..21096b0b43 100644 --- a/pkg/monocypher/Makefile.dep +++ b/pkg/monocypher/Makefile.dep @@ -1,4 +1,5 @@ -USEMODULE += monocypher_sha512 +# SHA-512 & ED25519 +USEMODULE += monocypher_optional # monocypher is only supported by 32 bit architectures FEATURES_REQUIRED += arch_32bit diff --git a/pkg/monocypher/Makefile.include b/pkg/monocypher/Makefile.include index a72d0d8d33..6309a213f7 100644 --- a/pkg/monocypher/Makefile.include +++ b/pkg/monocypher/Makefile.include @@ -1,7 +1,8 @@ INCLUDES += -I$(PKGDIRBASE)/monocypher/src INCLUDES += -I$(PKGDIRBASE)/monocypher/src/optional -ifneq (,$(filter monocypher_sha512,$(USEMODULE))) - CFLAGS += -DED25519_SHA512 +ifneq (,$(filter monocypher_optional,$(USEMODULE))) DIRS += $(PKGDIRBASE)/monocypher/src/optional endif + +CFLAGS += -DBLAKE2_NO_UNROLLING diff --git a/pkg/monocypher/patches/0001-Monocypher-add-riot-makefiles.patch b/pkg/monocypher/patches/0001-Monocypher-add-riot-makefiles.patch index cba5754d54..eacf2f9eff 100644 Binary files a/pkg/monocypher/patches/0001-Monocypher-add-riot-makefiles.patch and b/pkg/monocypher/patches/0001-Monocypher-add-riot-makefiles.patch differ