diff options
-rw-r--r-- | security/Makefile | 3 | ||||
-rw-r--r-- | security/codecrypt/DESCR | 24 | ||||
-rw-r--r-- | security/codecrypt/Makefile | 31 | ||||
-rw-r--r-- | security/codecrypt/PLIST | 3 | ||||
-rw-r--r-- | security/codecrypt/distinfo | 6 |
5 files changed, 66 insertions, 1 deletions
diff --git a/security/Makefile b/security/Makefile index e99fed64e5b..f06b82f2ad8 100644 --- a/security/Makefile +++ b/security/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.574 2016/04/25 20:39:15 fhajny Exp $ +# $NetBSD: Makefile,v 1.575 2016/04/30 19:27:43 agc Exp $ # COMMENT= Security tools @@ -39,6 +39,7 @@ SUBDIR+= chkrootkit SUBDIR+= clamav SUBDIR+= clamav-doc SUBDIR+= clusterssh +SUBDIR+= codecrypt SUBDIR+= courier-authlib SUBDIR+= crack SUBDIR+= credns diff --git a/security/codecrypt/DESCR b/security/codecrypt/DESCR new file mode 100644 index 00000000000..aa521199950 --- /dev/null +++ b/security/codecrypt/DESCR @@ -0,0 +1,24 @@ +This is a GnuPG-like unix program for encryption and signing that uses +only quantum-computer-resistant algorithms: + ++ McEliece cryptosystem (compact QC-MDPC variant) for encryption ++ Hash-based Merkle tree algorithm (FMTSeq variant) for digital +signatures + +Stream ciphers used: ChaCha20, XSynd stream cipher, RC4 (for initial +simplicity of implementation) + +CRHFs used: ++ Cubehash variants were selected for implementation ease, really +clean design, quite good speed and flexibility of parameter choices. +KeyID's are CUBE256 hashes of serialized public key. ++ ripemd128 for small hashes ++ tiger192 is used as an alternative for Cubehash for 192bit hashes ++ There's always a variant with SHA-256, SHA-384 or SHA-512. + +Signature algorithms: ++ FMTSeq with many possibilities and combinations of aforementioned CRHFs + +Encryption: +MDPC McEliece on quasi-cyclic matrices - decoding is (slightly) + vulnerable to timing attacks. diff --git a/security/codecrypt/Makefile b/security/codecrypt/Makefile new file mode 100644 index 00000000000..d86323d833b --- /dev/null +++ b/security/codecrypt/Makefile @@ -0,0 +1,31 @@ +# $NetBSD: Makefile,v 1.1 2016/04/30 19:27:43 agc Exp $ + +DISTNAME= codecrypt-1.7.5 +CATEGORIES= security +MASTER_SITES= ${MASTER_SITE_GITHUB:=exaexa/} +GITHUB_TAG= v1.7.5 + +MAINTAINER= agc@NetBSD.org +HOMEPAGE= https://github.com/exaexa/codecrypt +COMMENT= Post-quantum cryptographic software +LICENSE= gnu-lgpl-v3 + +USE_TOOLS+= autoconf automake autoreconf gmake pkg-config +GNU_CONFIGURE= yes +USE_LIBTOOL= yes +USE_LANGUAGES+= c c++ + +CRYPTOPPFLAGS= CRYPTOPP_CFLAGS=-I${PREFIX}/include +CRYPTOPPFLAGS+= CRYPTOPP_LIBS='-L${PREFIX}/lib -Wl,-R${PREFIX}/lib -lcryptopp' + +CONFIGURE_ENV+= ${CRYPTOPPFLAGS} +MAKE_ENV+= ${CRYPTOPPFLAGS} + +pre-configure: + cd ${WRKSRC} && ./autogen.sh + +.include "../../devel/gmp/buildlink3.mk" +.include "../../math/fftw/buildlink3.mk" +.include "../../security/crypto++/buildlink3.mk" + +.include "../../mk/bsd.pkg.mk" diff --git a/security/codecrypt/PLIST b/security/codecrypt/PLIST new file mode 100644 index 00000000000..68d9f508a67 --- /dev/null +++ b/security/codecrypt/PLIST @@ -0,0 +1,3 @@ +@comment $NetBSD: PLIST,v 1.1 2016/04/30 19:27:43 agc Exp $ +bin/ccr +man/man1/ccr.1 diff --git a/security/codecrypt/distinfo b/security/codecrypt/distinfo new file mode 100644 index 00000000000..c6eecfdb3d9 --- /dev/null +++ b/security/codecrypt/distinfo @@ -0,0 +1,6 @@ +$NetBSD: distinfo,v 1.1 2016/04/30 19:27:43 agc Exp $ + +SHA1 (codecrypt-1.7.5.tar.gz) = 138242abafee92718d9568b0b4fe15230333bede +RMD160 (codecrypt-1.7.5.tar.gz) = 343cf4178eb38dda93670b8cad10a4050f9290e8 +SHA512 (codecrypt-1.7.5.tar.gz) = 674a505bfd833e76d0bf44ce25cef89f355374b645bb98889983cdee76ab3d7e4828a074ccb430b1b9b1f86aa234312a02952bb6f84db4c66f3410985524a2cb +Size (codecrypt-1.7.5.tar.gz) = 20455881 bytes |