6aa6e68ed9
- Build scripts now depend on the sourceforce git repository directly. Changes since v1.0.0: October 10, 2020: A paper by Konstantinos Chalkias, François Garillot, and Valeria Nikolaenko, to be found at: https://eprint.iacr.org/2020/1244.pdf discusses malleability in EdDSA implementations. Their test vectors reveal unintentional malleability in libdecaf's version of EdDSA verify, in violation of RFC 8032. With this malleability, an attacker could modify an existing valid signature to create a new signature that is still valid, but only for the same message. Releave v1.0.1, correcting this flaw. Additional changes generated from git commit logs: - (tag: v1.0.1) Fix bug in ristretto elligator: it should be able to take improper field elements as input - Fix malleability bug from https://eprint.iacr.org/2020/1244.pdf and add test vectors - Optimize s^2 -> s2 - Dont double generator for Ed448RistrettoPoint - Update ristretto.sage for python3. Also add Ed448RistrettoPoint for reference - Add safer version of EdDSA signing API - Fix issues when compiling on GCC 9.1 - Also remove X_SER_BYTES while were at it - Remove gf_hibit, since it was a relic from p521 days - Adds errno.eexist, remove hardcoded error value - Tweak generated code message - Fix flaky Python generator - Add full RFC 8032 test vectors - Change test scripts to avoid GCC warnings - Minor changes. Bump version number in CMakeLists.txt
34 lines
993 B
Makefile
34 lines
993 B
Makefile
# $NetBSD: Makefile,v 1.4 2021/03/12 23:01:07 fox Exp $
|
|
|
|
PKGNAME= libdecaf-1.0.1
|
|
DISTNAME= ed448goldilocks-code-0324a955696d3235b5700046a487f8a2086baf1f
|
|
CATEGORIES= security
|
|
MASTER_SITES= https://sourceforge.net/code-snapshots/git/e/ed/ed448goldilocks/code.git/
|
|
EXTRACT_SUFX= .zip
|
|
|
|
MAINTAINER= fox@NetBSD.org
|
|
HOMEPAGE= http://ed448goldilocks.sourceforge.net/
|
|
COMMENT= Implementation of Ed448-Goldilocks elliptic curve for cryptography
|
|
LICENSE= mit
|
|
|
|
USE_CMAKE= yes
|
|
USE_LANGUAGES= c99 c++11
|
|
CMAKE_ARGS+= -DENABLE_TESTS=YES
|
|
|
|
# These are required to prevent build breakage when tests are enabled
|
|
# This is probably due to the auto-generated headers clobbering with
|
|
# the #defines
|
|
CFLAGS.NetBSD+= -D_NETBSD_SOURCE
|
|
|
|
PYTHON_FOR_BUILD_ONLY= tool
|
|
|
|
# XXX: Avoid to pick up possibe installed libdecaf.so
|
|
TEST_ENV+= LD_LIBRARY_PATH=${WRKSRC}/src
|
|
|
|
TEST_TARGET= test
|
|
|
|
post-install:
|
|
${CHMOD} -x ${DESTDIR}${PREFIX}/lib/libdecaf.a
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|