svn commit: r381886 - in head/security: . nist-kat
John-Mark Gurney
jmg at FreeBSD.org
Sun Mar 22 01:49:29 UTC 2015
Author: jmg
Date: Sun Mar 22 01:49:26 2015
New Revision: 381886
URL: https://svnweb.freebsd.org/changeset/ports/381886
QAT: https://qat.redports.org/buildarchive/r381886/
Log:
Add port to install various NIST KAT files. These are used by the
tests in tests/sys/opencrypto to validate parts of the OpenCrypto
subsystem...
Sponsored by: The FreeBSD Foundation
Approved by: mat (mentor)
Differential Revision: https://reviews.freebsd.org/D2064
Added:
head/security/nist-kat/
head/security/nist-kat/Makefile (contents, props changed)
head/security/nist-kat/distinfo (contents, props changed)
head/security/nist-kat/pkg-descr (contents, props changed)
head/security/nist-kat/pkg-plist (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Sun Mar 22 01:44:19 2015 (r381885)
+++ head/security/Makefile Sun Mar 22 01:49:26 2015 (r381886)
@@ -354,6 +354,7 @@
SUBDIR += netpgp
SUBDIR += nettle
SUBDIR += nikto
+ SUBDIR += nist-kat
SUBDIR += nmap
SUBDIR += nmapsi4
SUBDIR += nss
Added: head/security/nist-kat/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/nist-kat/Makefile Sun Mar 22 01:49:26 2015 (r381886)
@@ -0,0 +1,35 @@
+# Created by: John-Mark Gurney <jmg at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= nist-kat
+DISTVERSION= 0.0.2015.02.23
+CATEGORIES= security
+BASE_URL= http://csrc.nist.gov/groups/STM/cavp/documents
+MASTER_SITES= ${BASE_URL}/aes/:aes
+MASTER_SITES+= ${BASE_URL}/des/:des
+MASTER_SITES+= ${BASE_URL}/mac/:mac
+DISTFILES= KAT_AES.zip:aes
+DISTFILES+= XTSTestVectors.zip:aes
+DISTFILES+= KAT_TDES.zip:des
+DISTFILES+= gcmtestvectors.zip:mac
+DISTFILES+= hmactestvectors.zip:mac
+
+MAINTAINER= jmg at FreeBSD.org
+COMMENT= Collection of NIST's Know Answer Test Vectors
+
+LICENSE= Public_domain
+LICENSE_NAME= Public Domain
+LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
+LICENSE_TEXT= Public Domain, US Gov't work is not copyrighted in the US.
+
+# We want each dist file in it's own subdir
+EXTRACT_AFTER_ARGS= -s ":^:nist-kat/$${file%.zip}/:"
+
+NO_BUILD=
+NO_WRKSUBDIR=
+
+do-install:
+ ${MKDIR} ${STAGEDIR}${LOCALBASE}/share && \
+ (cd ${WRKSRC}/${PORTNAME} && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR})
+
+.include <bsd.port.mk>
Added: head/security/nist-kat/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/nist-kat/distinfo Sun Mar 22 01:49:26 2015 (r381886)
@@ -0,0 +1,10 @@
+SHA256 (KAT_AES.zip) = a203b16c9246b2ebae31dee5de21a606be80cf78ceabaca37150236fa098eb60
+SIZE (KAT_AES.zip) = 726299
+SHA256 (XTSTestVectors.zip) = 67bb04b018182f65530596786e7783f817d2e56509bf3b1f066609b8e3e29c36
+SIZE (XTSTestVectors.zip) = 595731
+SHA256 (KAT_TDES.zip) = 640e1df29f0f9e60b756e34870658fc785c706a170e1366eee58f115d3ce3905
+SIZE (KAT_TDES.zip) = 115770
+SHA256 (gcmtestvectors.zip) = f9fc479e134cde2980b3bb7cddbcb567b2cd96fd753835243ed067699f26a023
+SIZE (gcmtestvectors.zip) = 9154174
+SHA256 (hmactestvectors.zip) = 418c3837d38f249d6668146bd0090db24dd3c02d2e6797e3de33860a387ae4bd
+SIZE (hmactestvectors.zip) = 452025
Added: head/security/nist-kat/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/nist-kat/pkg-descr Sun Mar 22 01:49:26 2015 (r381886)
@@ -0,0 +1,3 @@
+This is a collection of the NIST's Known Answer Test vectors.
+
+These are primarily used to test the OpenCrypto framework.
Added: head/security/nist-kat/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/nist-kat/pkg-plist Sun Mar 22 01:49:26 2015 (r381886)
@@ -0,0 +1,139 @@
+%%DATADIR%%/KAT_AES/CBCGFSbox128.rsp
+%%DATADIR%%/KAT_AES/CBCGFSbox192.rsp
+%%DATADIR%%/KAT_AES/CBCGFSbox256.rsp
+%%DATADIR%%/KAT_AES/CBCKeySbox128.rsp
+%%DATADIR%%/KAT_AES/CBCKeySbox192.rsp
+%%DATADIR%%/KAT_AES/CBCKeySbox256.rsp
+%%DATADIR%%/KAT_AES/CBCVarKey128.rsp
+%%DATADIR%%/KAT_AES/CBCVarKey192.rsp
+%%DATADIR%%/KAT_AES/CBCVarKey256.rsp
+%%DATADIR%%/KAT_AES/CBCVarTxt128.rsp
+%%DATADIR%%/KAT_AES/CBCVarTxt192.rsp
+%%DATADIR%%/KAT_AES/CBCVarTxt256.rsp
+%%DATADIR%%/KAT_AES/CFB128GFSbox128.rsp
+%%DATADIR%%/KAT_AES/CFB128GFSbox192.rsp
+%%DATADIR%%/KAT_AES/CFB128GFSbox256.rsp
+%%DATADIR%%/KAT_AES/CFB128KeySbox128.rsp
+%%DATADIR%%/KAT_AES/CFB128KeySbox192.rsp
+%%DATADIR%%/KAT_AES/CFB128KeySbox256.rsp
+%%DATADIR%%/KAT_AES/CFB128VarKey128.rsp
+%%DATADIR%%/KAT_AES/CFB128VarKey192.rsp
+%%DATADIR%%/KAT_AES/CFB128VarKey256.rsp
+%%DATADIR%%/KAT_AES/CFB128VarTxt128.rsp
+%%DATADIR%%/KAT_AES/CFB128VarTxt192.rsp
+%%DATADIR%%/KAT_AES/CFB128VarTxt256.rsp
+%%DATADIR%%/KAT_AES/CFB1GFSbox128.rsp
+%%DATADIR%%/KAT_AES/CFB1GFSbox192.rsp
+%%DATADIR%%/KAT_AES/CFB1GFSbox256.rsp
+%%DATADIR%%/KAT_AES/CFB1KeySbox128.rsp
+%%DATADIR%%/KAT_AES/CFB1KeySbox192.rsp
+%%DATADIR%%/KAT_AES/CFB1KeySbox256.rsp
+%%DATADIR%%/KAT_AES/CFB1VarKey128.rsp
+%%DATADIR%%/KAT_AES/CFB1VarKey192.rsp
+%%DATADIR%%/KAT_AES/CFB1VarKey256.rsp
+%%DATADIR%%/KAT_AES/CFB1VarTxt128.rsp
+%%DATADIR%%/KAT_AES/CFB1VarTxt192.rsp
+%%DATADIR%%/KAT_AES/CFB1VarTxt256.rsp
+%%DATADIR%%/KAT_AES/CFB8GFSbox128.rsp
+%%DATADIR%%/KAT_AES/CFB8GFSbox192.rsp
+%%DATADIR%%/KAT_AES/CFB8GFSbox256.rsp
+%%DATADIR%%/KAT_AES/CFB8KeySbox128.rsp
+%%DATADIR%%/KAT_AES/CFB8KeySbox192.rsp
+%%DATADIR%%/KAT_AES/CFB8KeySbox256.rsp
+%%DATADIR%%/KAT_AES/CFB8VarKey128.rsp
+%%DATADIR%%/KAT_AES/CFB8VarKey192.rsp
+%%DATADIR%%/KAT_AES/CFB8VarKey256.rsp
+%%DATADIR%%/KAT_AES/CFB8VarTxt128.rsp
+%%DATADIR%%/KAT_AES/CFB8VarTxt192.rsp
+%%DATADIR%%/KAT_AES/CFB8VarTxt256.rsp
+%%DATADIR%%/KAT_AES/ECBGFSbox128.rsp
+%%DATADIR%%/KAT_AES/ECBGFSbox192.rsp
+%%DATADIR%%/KAT_AES/ECBGFSbox256.rsp
+%%DATADIR%%/KAT_AES/ECBKeySbox128.rsp
+%%DATADIR%%/KAT_AES/ECBKeySbox192.rsp
+%%DATADIR%%/KAT_AES/ECBKeySbox256.rsp
+%%DATADIR%%/KAT_AES/ECBVarKey128.rsp
+%%DATADIR%%/KAT_AES/ECBVarKey192.rsp
+%%DATADIR%%/KAT_AES/ECBVarKey256.rsp
+%%DATADIR%%/KAT_AES/ECBVarTxt128.rsp
+%%DATADIR%%/KAT_AES/ECBVarTxt192.rsp
+%%DATADIR%%/KAT_AES/ECBVarTxt256.rsp
+%%DATADIR%%/KAT_AES/OFBGFSbox128.rsp
+%%DATADIR%%/KAT_AES/OFBGFSbox192.rsp
+%%DATADIR%%/KAT_AES/OFBGFSbox256.rsp
+%%DATADIR%%/KAT_AES/OFBKeySbox128.rsp
+%%DATADIR%%/KAT_AES/OFBKeySbox192.rsp
+%%DATADIR%%/KAT_AES/OFBKeySbox256.rsp
+%%DATADIR%%/KAT_AES/OFBVarKey128.rsp
+%%DATADIR%%/KAT_AES/OFBVarKey192.rsp
+%%DATADIR%%/KAT_AES/OFBVarKey256.rsp
+%%DATADIR%%/KAT_AES/OFBVarTxt128.rsp
+%%DATADIR%%/KAT_AES/OFBVarTxt192.rsp
+%%DATADIR%%/KAT_AES/OFBVarTxt256.rsp
+%%DATADIR%%/KAT_AES/aesval.html
+%%DATADIR%%/KAT_TDES/TCBCIinvperm.rsp
+%%DATADIR%%/KAT_TDES/TCBCIpermop.rsp
+%%DATADIR%%/KAT_TDES/TCBCIsubtab.rsp
+%%DATADIR%%/KAT_TDES/TCBCIvarkey.rsp
+%%DATADIR%%/KAT_TDES/TCBCIvartext.rsp
+%%DATADIR%%/KAT_TDES/TCBCinvperm.rsp
+%%DATADIR%%/KAT_TDES/TCBCpermop.rsp
+%%DATADIR%%/KAT_TDES/TCBCsubtab.rsp
+%%DATADIR%%/KAT_TDES/TCBCvarkey.rsp
+%%DATADIR%%/KAT_TDES/TCBCvartext.rsp
+%%DATADIR%%/KAT_TDES/TCFB1invperm.rsp
+%%DATADIR%%/KAT_TDES/TCFB1permop.rsp
+%%DATADIR%%/KAT_TDES/TCFB1subtab.rsp
+%%DATADIR%%/KAT_TDES/TCFB1varkey.rsp
+%%DATADIR%%/KAT_TDES/TCFB1vartext.rsp
+%%DATADIR%%/KAT_TDES/TCFB64invperm.rsp
+%%DATADIR%%/KAT_TDES/TCFB64permop.rsp
+%%DATADIR%%/KAT_TDES/TCFB64subtab.rsp
+%%DATADIR%%/KAT_TDES/TCFB64varkey.rsp
+%%DATADIR%%/KAT_TDES/TCFB64vartext.rsp
+%%DATADIR%%/KAT_TDES/TCFB8invperm.rsp
+%%DATADIR%%/KAT_TDES/TCFB8permop.rsp
+%%DATADIR%%/KAT_TDES/TCFB8subtab.rsp
+%%DATADIR%%/KAT_TDES/TCFB8varkey.rsp
+%%DATADIR%%/KAT_TDES/TCFB8vartext.rsp
+%%DATADIR%%/KAT_TDES/TCFBP1invperm.rsp
+%%DATADIR%%/KAT_TDES/TCFBP1permop.rsp
+%%DATADIR%%/KAT_TDES/TCFBP1subtab.rsp
+%%DATADIR%%/KAT_TDES/TCFBP1varkey.rsp
+%%DATADIR%%/KAT_TDES/TCFBP1vartext.rsp
+%%DATADIR%%/KAT_TDES/TCFBP64invperm.rsp
+%%DATADIR%%/KAT_TDES/TCFBP64permop.rsp
+%%DATADIR%%/KAT_TDES/TCFBP64subtab.rsp
+%%DATADIR%%/KAT_TDES/TCFBP64varkey.rsp
+%%DATADIR%%/KAT_TDES/TCFBP64vartext.rsp
+%%DATADIR%%/KAT_TDES/TCFBP8invperm.rsp
+%%DATADIR%%/KAT_TDES/TCFBP8permop.rsp
+%%DATADIR%%/KAT_TDES/TCFBP8subtab.rsp
+%%DATADIR%%/KAT_TDES/TCFBP8varkey.rsp
+%%DATADIR%%/KAT_TDES/TCFBP8vartext.rsp
+%%DATADIR%%/KAT_TDES/TECBinvperm.rsp
+%%DATADIR%%/KAT_TDES/TECBpermop.rsp
+%%DATADIR%%/KAT_TDES/TECBsubtab.rsp
+%%DATADIR%%/KAT_TDES/TECBvarkey.rsp
+%%DATADIR%%/KAT_TDES/TECBvartext.rsp
+%%DATADIR%%/KAT_TDES/TOFBIinvperm.rsp
+%%DATADIR%%/KAT_TDES/TOFBIpermop.rsp
+%%DATADIR%%/KAT_TDES/TOFBIsubtab.rsp
+%%DATADIR%%/KAT_TDES/TOFBIvarkey.rsp
+%%DATADIR%%/KAT_TDES/TOFBIvartext.rsp
+%%DATADIR%%/KAT_TDES/TOFBinvperm.rsp
+%%DATADIR%%/KAT_TDES/TOFBpermop.rsp
+%%DATADIR%%/KAT_TDES/TOFBsubtab.rsp
+%%DATADIR%%/KAT_TDES/TOFBvarkey.rsp
+%%DATADIR%%/KAT_TDES/TOFBvartext.rsp
+%%DATADIR%%/XTSTestVectors/format tweak value input - 128 hex str/XTSGenAES128.rsp
+%%DATADIR%%/XTSTestVectors/format tweak value input - 128 hex str/XTSGenAES256.rsp
+%%DATADIR%%/XTSTestVectors/format tweak value input - data unit seq no/XTSGenAES128.rsp
+%%DATADIR%%/XTSTestVectors/format tweak value input - data unit seq no/XTSGenAES256.rsp
+%%DATADIR%%/gcmtestvectors/gcmDecrypt128.rsp
+%%DATADIR%%/gcmtestvectors/gcmDecrypt192.rsp
+%%DATADIR%%/gcmtestvectors/gcmDecrypt256.rsp
+%%DATADIR%%/gcmtestvectors/gcmEncryptExtIV128.rsp
+%%DATADIR%%/gcmtestvectors/gcmEncryptExtIV192.rsp
+%%DATADIR%%/gcmtestvectors/gcmEncryptExtIV256.rsp
+%%DATADIR%%/hmactestvectors/HMAC.rsp
More information about the svn-ports-all
mailing list