From owner-svn-ports-all@freebsd.org Mon Jan 29 13:23:13 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A7580EC6C84; Mon, 29 Jan 2018 13:23:13 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 5BEC67298F; Mon, 29 Jan 2018 13:23:13 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 56D1BACE; Mon, 29 Jan 2018 13:23:13 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w0TDNDI0052102; Mon, 29 Jan 2018 13:23:13 GMT (envelope-from ale@FreeBSD.org) Received: (from ale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w0TDNC3j052096; Mon, 29 Jan 2018 13:23:12 GMT (envelope-from ale@FreeBSD.org) Message-Id: <201801291323.w0TDNC3j052096@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ale set sender to ale@FreeBSD.org using -f From: Alex Dupre Date: Mon, 29 Jan 2018 13:23:12 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r460299 - in head/math: . secp256k1 X-SVN-Group: ports-head X-SVN-Commit-Author: ale X-SVN-Commit-Paths: in head/math: . secp256k1 X-SVN-Commit-Revision: 460299 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Jan 2018 13:23:14 -0000 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 +# $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 + +.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 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