Date: Mon, 29 Jan 2018 13:23:12 +0000 (UTC) From: Alex Dupre <ale@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460299 - in head/math: . secp256k1 Message-ID: <201801291323.w0TDNC3j052096@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: ale Date: Mon Jan 29 13:23:12 2018 New Revision: 460299 URL: https://svnweb.freebsd.org/changeset/ports/460299 Log: An optimized C library for EC operations on curve secp256k1. This library is a work in progress and is being used to research best practices. Use at your own risk. Features: - secp256k1 ECDSA signing/verification and key generation. - Adding/multiplying private/public keys. - Serialization/parsing of private keys, public keys, signatures. - Constant time, constant memory access signing and pubkey generation. - Derandomized DSA (via RFC6979 or with a caller provided function.) - Very efficient implementation. WWW: https://github.com/bitcoin-core/secp256k1 Added: head/math/secp256k1/ head/math/secp256k1/Makefile (contents, props changed) head/math/secp256k1/distinfo (contents, props changed) head/math/secp256k1/pkg-descr (contents, props changed) head/math/secp256k1/pkg-plist (contents, props changed) Modified: head/math/Makefile Modified: head/math/Makefile ============================================================================== --- head/math/Makefile Mon Jan 29 12:56:00 2018 (r460298) +++ head/math/Makefile Mon Jan 29 13:23:12 2018 (r460299) @@ -714,6 +714,7 @@ SUBDIR += scilab-toolbox-swt SUBDIR += sdpa SUBDIR += sdpara + SUBDIR += secp256k1 SUBDIR += sfft SUBDIR += sfst SUBDIR += simd-viterbi Added: head/math/secp256k1/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/secp256k1/Makefile Mon Jan 29 13:23:12 2018 (r460299) @@ -0,0 +1,47 @@ +# Created by: Alex Dupre <ale@FreeBSD.org> +# $FreeBSD$ + +PORTNAME= secp256k1 +PORTVERSION= 0.1.20171222 +CATEGORIES= math security java + +MAINTAINER= ale@FreeBSD.org +COMMENT= Optimized C library for EC operations on curve secp256k1 + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/COPYING + +USES= autoreconf libtool gmake +USE_LDCONFIG= yes +USE_GITHUB= yes +GH_ACCOUNT= bitcoin-core +GH_TAGNAME= c95f6f1 + +OPTIONS_DEFINE= GMP JAVA +OPTIONS_DEFAULT=GMP JAVA + +GMP_DESC= Use GMP bignum implementation +GMP_LIB_DEPENDS=libgmp.so:math/gmp +GMP_CONFIGURE_ON=--with-bignum=gmp +GMP_CONFIGURE_OFF=--with-bignum=no + +JAVA_DESC= Build JNI bindings +JAVA_CONFIGURE_ENABLE=jni + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-experimental --enable-module-ecdh +INSTALL_TARGET= install-strip + +.include <bsd.port.options.mk> + +.if ${PORT_OPTIONS:MGMP} +CPPFLAGS+= -I${LOCALBASE}/include +LDFLAGS+= -L${LOCALBASE}/lib +.endif + +.if ${PORT_OPTIONS:MJAVA} +USE_JAVA= yes +CONFIGURE_ENV+= JAVA_HOME="${JAVA_HOME}" +.endif + +.include <bsd.port.mk> Added: head/math/secp256k1/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/secp256k1/distinfo Mon Jan 29 13:23:12 2018 (r460299) @@ -0,0 +1,3 @@ +TIMESTAMP = 1517222904 +SHA256 (bitcoin-core-secp256k1-0.1.20171222-c95f6f1_GH0.tar.gz) = 8c171d1064f3e4780bbfb76a21a768df4cece36c2e7b680e6b04d71f9554dfcf +SIZE (bitcoin-core-secp256k1-0.1.20171222-c95f6f1_GH0.tar.gz) = 161854 Added: head/math/secp256k1/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/secp256k1/pkg-descr Mon Jan 29 13:23:12 2018 (r460299) @@ -0,0 +1,14 @@ +An optimized C library for EC operations on curve secp256k1. + +This library is a work in progress and is being used to research best practices. +Use at your own risk. + +Features: + - secp256k1 ECDSA signing/verification and key generation. + - Adding/multiplying private/public keys. + - Serialization/parsing of private keys, public keys, signatures. + - Constant time, constant memory access signing and pubkey generation. + - Derandomized DSA (via RFC6979 or with a caller provided function.) + - Very efficient implementation. + +WWW: https://github.com/bitcoin-core/secp256k1 Added: head/math/secp256k1/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/math/secp256k1/pkg-plist Mon Jan 29 13:23:12 2018 (r460299) @@ -0,0 +1,7 @@ +include/secp256k1.h +include/secp256k1_ecdh.h +lib/libsecp256k1.a +lib/libsecp256k1.so +lib/libsecp256k1.so.0 +lib/libsecp256k1.so.0.0.0 +libdata/pkgconfig/libsecp256k1.pc
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201801291323.w0TDNC3j052096>