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:
parent
3b8fb0bd80
commit
ae1c4f422c
@ -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
|
||||
|
@ -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_%
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user