From owner-svn-ports-all@freebsd.org Mon Jan 8 17:11:29 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3230CE78770; Mon, 8 Jan 2018 17:11:29 +0000 (UTC) (envelope-from krion@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 05D16360D; Mon, 8 Jan 2018 17:11:29 +0000 (UTC) (envelope-from krion@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 3339327A0; Mon, 8 Jan 2018 17:11:28 +0000 (UTC) (envelope-from krion@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w08HBSlX094052; Mon, 8 Jan 2018 17:11:28 GMT (envelope-from krion@FreeBSD.org) Received: (from krion@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w08HBRRZ094047; Mon, 8 Jan 2018 17:11:27 GMT (envelope-from krion@FreeBSD.org) Message-Id: <201801081711.w08HBRRZ094047@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: krion set sender to krion@FreeBSD.org using -f From: Kirill Ponomarev Date: Mon, 8 Jan 2018 17:11:27 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r458457 - in head/security: . libdecaf libdecaf/files X-SVN-Group: ports-head X-SVN-Commit-Author: krion X-SVN-Commit-Paths: in head/security: . libdecaf libdecaf/files X-SVN-Commit-Revision: 458457 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, 08 Jan 2018 17:11:29 -0000 Author: krion Date: Mon Jan 8 17:11:27 2018 New Revision: 458457 URL: https://svnweb.freebsd.org/changeset/ports/458457 Log: Add security/libdecaf Implementation of elliptic curve cryptography using the Montgomery and Edwards curves Curve25519, Ed25519, Ed448-Goldilocks and Curve448, using the Decaf / Ristretto encoding. Approved by: mat (mentor) Added: head/security/libdecaf/ head/security/libdecaf/Makefile (contents, props changed) head/security/libdecaf/distinfo (contents, props changed) head/security/libdecaf/files/ head/security/libdecaf/files/patch-Makefile (contents, props changed) head/security/libdecaf/pkg-descr (contents, props changed) Modified: head/security/Makefile Modified: head/security/Makefile ============================================================================== --- head/security/Makefile Mon Jan 8 17:07:41 2018 (r458456) +++ head/security/Makefile Mon Jan 8 17:11:27 2018 (r458457) @@ -329,6 +329,7 @@ SUBDIR += libbeid SUBDIR += libbf SUBDIR += libcryptui + SUBDIR += libdecaf SUBDIR += libecc SUBDIR += libfprint SUBDIR += libgcrypt Added: head/security/libdecaf/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/libdecaf/Makefile Mon Jan 8 17:11:27 2018 (r458457) @@ -0,0 +1,29 @@ +# $FreeBSD$ + +PORTNAME= libdecaf +PORTVERSION= 0.9.4 +CATEGORIES= security +MASTER_SITES= SF/ed448goldilocks/ + +MAINTAINER= krion@FreeBSD.org +COMMENT= Implementation of elliptic curve cryptography + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +USES= gmake python:2.7 tar:tgz +USE_LDCONFIG= yes +LDFLAGS+= -L${LOCALBASE}/lib + +PLIST_FILES= bin/ristretto bin/shakesum \ + lib/libdecaf.so lib/libdecaf.so.1 + +post-patch: + @${REINPLACE_CMD} -e 's|PYTHON ?= python|PYTHON ?= ${PYTHON_CMD}|g' \ + ${WRKSRC}/Makefile + +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/build/bin/* ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_LIB} ${WRKSRC}/build/lib/* ${STAGEDIR}${PREFIX}/lib/ + +.include Added: head/security/libdecaf/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/libdecaf/distinfo Mon Jan 8 17:11:27 2018 (r458457) @@ -0,0 +1,3 @@ +TIMESTAMP = 1515406054 +SHA256 (libdecaf-0.9.4.tgz) = 6b0b6dc77a8dec88ea5b45902f8211d9f6c55b3346191dcd0aaeeb45a8d23f7f +SIZE (libdecaf-0.9.4.tgz) = 557122 Added: head/security/libdecaf/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/libdecaf/files/patch-Makefile Mon Jan 8 17:11:27 2018 (r458457) @@ -0,0 +1,45 @@ +--- Makefile.orig 2018-01-08 13:58:29 UTC ++++ Makefile +@@ -19,7 +19,7 @@ BUILD_IBIN = build/obj/bin + + DOXYGEN ?= doxygen + +-ifeq ($(UNAME),Darwin) ++ifeq ($(UNAME),FreeBSD) + CC = clang + CXX = clang++ + else +@@ -97,14 +97,14 @@ scan: clean + + # Internal test programs, which are not part of the final build/bin directory. + $(BUILD_IBIN)/test: $(BUILD_OBJ)/test_decaf.o lib +-ifeq ($(UNAME),Darwin) ++ifeq ($(UNAME),FreeBSD) + $(LDXX) $(LDFLAGS) -o $@ $< -L$(BUILD_LIB) -ldecaf + else + $(LDXX) $(LDFLAGS) -Wl,-rpath,`pwd`/$(BUILD_LIB) -o $@ $< -L$(BUILD_LIB) -ldecaf + endif + + $(BUILD_BIN)/ristretto: $(BUILD_OBJ)/ristretto.o lib +-ifeq ($(UNAME),Darwin) ++ifeq ($(UNAME),FreeBSD) + $(LDXX) $(LDFLAGS) -o $@ $< -L$(BUILD_LIB) -ldecaf + else + $(LDXX) $(LDFLAGS) -Wl,-rpath,`pwd`/$(BUILD_LIB) -o $@ $< -L$(BUILD_LIB) -ldecaf +@@ -112,14 +112,14 @@ endif + + # Internal test programs, which are not part of the final build/bin directory. + $(BUILD_IBIN)/test_ct: $(BUILD_OBJ)/test_ct.o lib +-ifeq ($(UNAME),Darwin) ++ifeq ($(UNAME),FreeBSD) + $(LDXX) $(LDFLAGS) -o $@ $< -L$(BUILD_LIB) -ldecaf + else + $(LDXX) $(LDFLAGS) -Wl,-rpath,`pwd`/$(BUILD_LIB) -o $@ $< -L$(BUILD_LIB) -ldecaf + endif + + $(BUILD_IBIN)/bench: $(BUILD_OBJ)/bench_decaf.o lib +-ifeq ($(UNAME),Darwin) ++ifeq ($(UNAME),FreeBSD) + $(LDXX) $(LDFLAGS) -o $@ $< -L$(BUILD_LIB) -ldecaf + else + $(LDXX) $(LDFLAGS) -Wl,-rpath,`pwd`/$(BUILD_LIB) -o $@ $< -L$(BUILD_LIB) -ldecaf Added: head/security/libdecaf/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/libdecaf/pkg-descr Mon Jan 8 17:11:27 2018 (r458457) @@ -0,0 +1,5 @@ +Implementation of elliptic curve cryptography using the Montgomery +and Edwards curves Curve25519, Ed25519, Ed448-Goldilocks and +Curve448, using the Decaf / Ristretto encoding. + +WWW: http://ed448goldilocks.sourceforge.net/