1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

pkg/libcose: add monocypher and c25519

This commit is contained in:
Francisco Molina 2019-08-12 14:23:10 +02:00
parent 3b8fb0bd80
commit ae1c4f422c
3 changed files with 14 additions and 0 deletions

View File

@ -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

View File

@ -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_%