diff --git a/pkg/libcose/Makefile.dep b/pkg/libcose/Makefile.dep index da93126dd0..f62a5eb7f2 100644 --- a/pkg/libcose/Makefile.dep +++ b/pkg/libcose/Makefile.dep @@ -2,6 +2,14 @@ USEPKG += nanocbor USEMODULE += libcose_crypt +USEMODULE += random + ifneq (,$(filter libcose_crypt_hacl,$(USEMODULE))) USEPKG += hacl endif +ifneq (,$(filter libcose_crypt_monocypher,$(USEMODULE))) + USEPKG += monocypher +endif +ifneq (,$(filter libcose_crypt_c25519,$(USEMODULE))) + USEPKG += c25519 +endif diff --git a/pkg/libcose/Makefile.include b/pkg/libcose/Makefile.include index 3215fa1c9f..d2b027bfe6 100644 --- a/pkg/libcose/Makefile.include +++ b/pkg/libcose/Makefile.include @@ -4,6 +4,12 @@ CFLAGS += -DUSE_CBOR_CONTEXT ifneq (,$(filter libcose_crypt_hacl,$(USEMODULE))) CFLAGS += -DCRYPTO_HACL endif +ifneq (,$(filter libcose_crypt_monocypher,$(USEMODULE))) + CFLAGS += -DCRYPTO_MONOCYPHER +endif +ifneq (,$(filter libcose_crypt_c25519,$(USEMODULE))) + CFLAGS += -DCRYPTO_C25519 +endif # Declare pseudomodules here to be selfcontained PSEUDOMODULES += libcose_crypt_% diff --git a/pkg/libcose/patches/0001-RIOT-Use-RIOT-random_bytes-function-instead-of-rando.patch b/pkg/libcose/patches/0001-RIOT-Use-RIOT-random_bytes-function-instead-of-rando.patch index 1ae4b2f3be..66a174ab70 100644 Binary files a/pkg/libcose/patches/0001-RIOT-Use-RIOT-random_bytes-function-instead-of-rando.patch and b/pkg/libcose/patches/0001-RIOT-Use-RIOT-random_bytes-function-instead-of-rando.patch differ