summaryrefslogtreecommitdiff
path: root/security/hpenc
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@FreeBSD.org>2015-01-31 10:25:36 +0000
committerVsevolod Stakhov <vsevolod@FreeBSD.org>2015-01-31 10:25:36 +0000
commit97015e09403a08d144bf5823ca7b3eec9ca46159 (patch)
treee4e6e274522af55aaa3a80d4d1ecdc00a9d1caae /security/hpenc
parentMark BROKEN: Checksum and size mismatch (diff)
Add hpenc utility port.
https://github.com/vstakhov/hpenc
Notes
Notes: svn path=/head/; revision=378199
Diffstat (limited to 'security/hpenc')
-rw-r--r--security/hpenc/Makefile26
-rw-r--r--security/hpenc/distinfo2
-rw-r--r--security/hpenc/pkg-descr19
3 files changed, 47 insertions, 0 deletions
diff --git a/security/hpenc/Makefile b/security/hpenc/Makefile
new file mode 100644
index 000000000000..8febca8b1cad
--- /dev/null
+++ b/security/hpenc/Makefile
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME= hpenc
+PORTVERSION= 1.0
+CATEGORIES= security
+MASTER_SITES= http://highsecure.ru/distfiles/
+
+MAINTAINER= vsevolod@FreeBSD.org
+COMMENT= Fast authenticated encryption CLI tool
+
+LICENSE= BSD2CLAUSE
+
+USES= tar:xz compiler:c++11-lib gmake
+USE_OPENSSL= yes
+PLIST_FILES= bin/hpenc
+
+MAKE_ARGS+= "ARCH=${ARCH:S/amd64/x86/:S/i386/x86/}"
+CXXFLAGS+= -std=c++11 \
+ -I${WRKSRC}/chacha-opt/app/include \
+ -I${WRKSRC}/poly1305-opt/app/include
+LDFLAGS+= -pthread -lcrypto
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/hpenc
+
+.include <bsd.port.mk>
diff --git a/security/hpenc/distinfo b/security/hpenc/distinfo
new file mode 100644
index 000000000000..36b028c8cb97
--- /dev/null
+++ b/security/hpenc/distinfo
@@ -0,0 +1,2 @@
+SHA256 (hpenc-1.0.tar.xz) = 81a87c05b693285c26585053d34c49cda158f2f07f64b71202bf48ef48a5ea4d
+SIZE (hpenc-1.0.tar.xz) = 612044
diff --git a/security/hpenc/pkg-descr b/security/hpenc/pkg-descr
new file mode 100644
index 000000000000..deeb45f771c6
--- /dev/null
+++ b/security/hpenc/pkg-descr
@@ -0,0 +1,19 @@
+Hpenc is a fast encryption command line tool with the following features:
+
+* Authenticated encryption - your data cannot be forged or corrupted without
+detection.
+* Parallel processing - hpenc uses block IO and you can process multiple blocks
+simultaneously, which is extremely useful if you have multi-core environment.
+* Strong ciphers - hpenc uses the state-of-art aes-gcm and chacha20 ciphers
+* Easy interface
+* Hardware acceleration - hpenc can utilize all its
+advanced cryptography functions defined for AES-NI and PCLMULQDQ instructions
+(that must be supported by openssl). For those with old or embedded CPU (such
+as ARM), hpenc provides portable and fast chacha20 cipher.
+* Simple key management
+* Secure random numbers generator - hpenc can work as pseudo-random numbers
+generator. In a set of standard tests (diehard) on the generated sequences
+hpenc generates secure sequences of pseudo-random numbers on a very high
+speed (gigabytes per second).
+
+WWW: https://github.com/vstakhov/hpenc/