diff --git a/pkg/qDSA/Makefile b/pkg/qDSA/Makefile new file mode 100644 index 0000000000..3055a03469 --- /dev/null +++ b/pkg/qDSA/Makefile @@ -0,0 +1,11 @@ +PKG_NAME=qDSA +PKG_URL=https://github.com/RIOT-OS/qDSA.git +PKG_VERSION=dd2392b0c81ce4187fd3e1e2d3e0a4767f75782e +PKG_LICENSE=PD + +.PHONY: all + +all: git-download + "$(MAKE)" -C $(PKG_BUILDDIR)/$(QDSA_IMPL) + +include $(RIOTBASE)/pkg/pkg.mk diff --git a/pkg/qDSA/Makefile.dep b/pkg/qDSA/Makefile.dep new file mode 100644 index 0000000000..997fb291c2 --- /dev/null +++ b/pkg/qDSA/Makefile.dep @@ -0,0 +1,3 @@ +ifneq (,$(filter atmega_common cortexm_common,$(USEMODULE))) + USEMODULE += qDSA_asm +endif diff --git a/pkg/qDSA/Makefile.include b/pkg/qDSA/Makefile.include new file mode 100644 index 0000000000..db13eeb18f --- /dev/null +++ b/pkg/qDSA/Makefile.include @@ -0,0 +1,13 @@ +ifneq (,$(filter cortexm_common,$(USEMODULE))) + QDSA_IMPL ?= arm +else +ifneq (,$(filter atmega_common,$(USEMODULE))) + QDSA_IMPL ?= avr +else + QDSA_IMPL ?= cref +endif +endif + +export QDSA_IMPL + +INCLUDES += -I$(PKGDIRBASE)/qDSA/$(QDSA_IMPL) diff --git a/pkg/qDSA/doc.txt b/pkg/qDSA/doc.txt new file mode 100644 index 0000000000..80aa3e63d6 --- /dev/null +++ b/pkg/qDSA/doc.txt @@ -0,0 +1,12 @@ +/** + * @defgroup pkg_qDSA qDSA + * @ingroup pkg + * @ingroup sys + * @brief Small and Secure Digital Signatures with Curve-based Diffie-Hellman Key Pairs + * + * # License + * + * The package code is released to public domain + * + * @see https://www.cs.ru.nl/~jrenes/ + */