From 0f3cc3aa55bcc6476d721f9fbb8dfe8559d85ff7 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Mon, 27 Jun 2016 16:26:25 -0400 Subject: First cut at consolidated alpha releng. Undoubtedly doesn't work yet, and still needs doc, but perhaps now ready for testing on build machine. --- source/Makefile | 19 +++++++++++++++++++ source/core/cipher/aes | 1 + source/core/cipher/chacha | 1 + source/core/comm/fmc | 1 + source/core/comm/uart | 1 + source/core/hash/sha1 | 1 + source/core/hash/sha256 | 1 + source/core/hash/sha512 | 1 + source/core/math/modexpa7 | 1 + source/core/platform/alpha | 1 + source/core/rng/avalanche_entropy | 1 + source/core/rng/rosc_entropy | 1 + source/core/rng/trng | 1 + source/core/rng/vndecorrelator | 1 + source/core/util/mkmif | 1 + source/debian/compat | 1 + source/debian/control | 14 ++++++++++++++ source/debian/copyright | 27 +++++++++++++++++++++++++++ source/debian/rules | 4 ++++ source/debian/source/format | 1 + source/sw/libhal | 1 + source/sw/pkcs11 | 1 + source/sw/stm32 | 1 + source/sw/thirdparty/libtfm | 1 + source/user/ft/libcli | 1 + 25 files changed, 85 insertions(+) create mode 100644 source/Makefile create mode 160000 source/core/cipher/aes create mode 160000 source/core/cipher/chacha create mode 160000 source/core/comm/fmc create mode 160000 source/core/comm/uart create mode 160000 source/core/hash/sha1 create mode 160000 source/core/hash/sha256 create mode 160000 source/core/hash/sha512 create mode 160000 source/core/math/modexpa7 create mode 160000 source/core/platform/alpha create mode 160000 source/core/rng/avalanche_entropy create mode 160000 source/core/rng/rosc_entropy create mode 160000 source/core/rng/trng create mode 160000 source/core/rng/vndecorrelator create mode 160000 source/core/util/mkmif create mode 100644 source/debian/compat create mode 100644 source/debian/control create mode 100644 source/debian/copyright create mode 100755 source/debian/rules create mode 100644 source/debian/source/format create mode 160000 source/sw/libhal create mode 160000 source/sw/pkcs11 create mode 160000 source/sw/stm32 create mode 160000 source/sw/thirdparty/libtfm create mode 160000 source/user/ft/libcli (limited to 'source') diff --git a/source/Makefile b/source/Makefile new file mode 100644 index 0000000..e2fdb1b --- /dev/null +++ b/source/Makefile @@ -0,0 +1,19 @@ +# Makefile to build Debian package for Cryptech Alpha board software + +all: + cd sw/thirdparty/libtfm; ${MAKE} + cd sw/libhal; ${MAKE} daemon + cd sw/pkcs11; ${MAKE} + +clean distclean: + cd sw/thirdparty/libtfm; ${MAKE} $@ + cd sw/libhal; ${MAKE} $@ + cd sw/pkcs11; ${MAKE} $@ + +install: all + install -m 644 -D sw/pkcs11/libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so + install -D sw/pkcs11/p11util ${DESTDIR}/usr/sbin/p11util + install -D sw/libhal/cryptech_rpcd ${DESTDIR}/usr/sbin/cryptech_rpcd + ln -s libpkcs11.so ${DESTDIR}/usr/lib/libpkcs11.so.0 + +# Might also want to install the firmware tarball, scripts to use it, .... diff --git a/source/core/cipher/aes b/source/core/cipher/aes new file mode 160000 index 0000000..9157592 --- /dev/null +++ b/source/core/cipher/aes @@ -0,0 +1 @@ +Subproject commit 915759285c179cf99be3c17ad401c79e4b8be054 diff --git a/source/core/cipher/chacha b/source/core/cipher/chacha new file mode 160000 index 0000000..549b75a --- /dev/null +++ b/source/core/cipher/chacha @@ -0,0 +1 @@ +Subproject commit 549b75a635817ce263c368c9b8b5b0b07f90ec21 diff --git a/source/core/comm/fmc b/source/core/comm/fmc new file mode 160000 index 0000000..61c16de --- /dev/null +++ b/source/core/comm/fmc @@ -0,0 +1 @@ +Subproject commit 61c16de8beb8deaadd2ffedfabfb3ce96e8699f0 diff --git a/source/core/comm/uart b/source/core/comm/uart new file mode 160000 index 0000000..0d3acd1 --- /dev/null +++ b/source/core/comm/uart @@ -0,0 +1 @@ +Subproject commit 0d3acd1815da8fcbd2b30f4fe1ff514f87b25228 diff --git a/source/core/hash/sha1 b/source/core/hash/sha1 new file mode 160000 index 0000000..ae915a1 --- /dev/null +++ b/source/core/hash/sha1 @@ -0,0 +1 @@ +Subproject commit ae915a1ed47a807ec880c2f18053e4f8eda6bd93 diff --git a/source/core/hash/sha256 b/source/core/hash/sha256 new file mode 160000 index 0000000..c894f78 --- /dev/null +++ b/source/core/hash/sha256 @@ -0,0 +1 @@ +Subproject commit c894f78a95a01351f277c3d36bcf6dced08798e2 diff --git a/source/core/hash/sha512 b/source/core/hash/sha512 new file mode 160000 index 0000000..88e0d83 --- /dev/null +++ b/source/core/hash/sha512 @@ -0,0 +1 @@ +Subproject commit 88e0d83768004b6bab2d83edf7eae2841678b51c diff --git a/source/core/math/modexpa7 b/source/core/math/modexpa7 new file mode 160000 index 0000000..4612bc2 --- /dev/null +++ b/source/core/math/modexpa7 @@ -0,0 +1 @@ +Subproject commit 4612bc24a8b43c14580d6be06542b1fa9a6e615a diff --git a/source/core/platform/alpha b/source/core/platform/alpha new file mode 160000 index 0000000..fc8be80 --- /dev/null +++ b/source/core/platform/alpha @@ -0,0 +1 @@ +Subproject commit fc8be8024560bb77221758b0351c3de7b4ea6e93 diff --git a/source/core/rng/avalanche_entropy b/source/core/rng/avalanche_entropy new file mode 160000 index 0000000..5742813 --- /dev/null +++ b/source/core/rng/avalanche_entropy @@ -0,0 +1 @@ +Subproject commit 5742813ab43fec9fa90d970f086f1e266875b8f3 diff --git a/source/core/rng/rosc_entropy b/source/core/rng/rosc_entropy new file mode 160000 index 0000000..48e3c11 --- /dev/null +++ b/source/core/rng/rosc_entropy @@ -0,0 +1 @@ +Subproject commit 48e3c117ae6944775010031b1691446220944b62 diff --git a/source/core/rng/trng b/source/core/rng/trng new file mode 160000 index 0000000..953909d --- /dev/null +++ b/source/core/rng/trng @@ -0,0 +1 @@ +Subproject commit 953909d18796c1caea35263eb902b1dd7021d92d diff --git a/source/core/rng/vndecorrelator b/source/core/rng/vndecorrelator new file mode 160000 index 0000000..49e388c --- /dev/null +++ b/source/core/rng/vndecorrelator @@ -0,0 +1 @@ +Subproject commit 49e388c3dadcaabe1e4e66a37fcd52b2f125c1dc diff --git a/source/core/util/mkmif b/source/core/util/mkmif new file mode 160000 index 0000000..fd1dd73 --- /dev/null +++ b/source/core/util/mkmif @@ -0,0 +1 @@ +Subproject commit fd1dd73410ba6ca3d082ff61e4b39d6e8c2de35e diff --git a/source/debian/compat b/source/debian/compat new file mode 100644 index 0000000..ec63514 --- /dev/null +++ b/source/debian/compat @@ -0,0 +1 @@ +9 diff --git a/source/debian/control b/source/debian/control new file mode 100644 index 0000000..8ae25b9 --- /dev/null +++ b/source/debian/control @@ -0,0 +1,14 @@ +Source: cryptech-alpha +Maintainer: APT Builder Robot +Section: misc +Priority: optional +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9), libsqlite3-0, libsqlite3-dev, python (>= 2.7), python-yaml +Homepage: http://trac.cryptech.is/wiki + +Package: cryptech-alpha +Architecture: any +Depends: libc6 (>= 2.13), ${misc:Depends}, libsqlite3-0 +Description: Cryptech open-source crypto software + "cryptech-alpha" contains software for use with the Cryptech Project + "Alpha" development board. diff --git a/source/debian/copyright b/source/debian/copyright new file mode 100644 index 0000000..ec25460 --- /dev/null +++ b/source/debian/copyright @@ -0,0 +1,27 @@ +Copyright (c) 2015-2016, NORDUnet A/S All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are +met: +- Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + +- Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + +- Neither the name of the NORDUnet nor the names of its contributors may + be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS +IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED +TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A +PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED +TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR +PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF +LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING +NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/source/debian/rules b/source/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/source/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/source/debian/source/format b/source/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/source/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/source/sw/libhal b/source/sw/libhal new file mode 160000 index 0000000..709a71c --- /dev/null +++ b/source/sw/libhal @@ -0,0 +1 @@ +Subproject commit 709a71c0030225ba08cddf5227a1c67c2dbb4176 diff --git a/source/sw/pkcs11 b/source/sw/pkcs11 new file mode 160000 index 0000000..3118c13 --- /dev/null +++ b/source/sw/pkcs11 @@ -0,0 +1 @@ +Subproject commit 3118c1384c46140269033ea63faa6ebca9a3af5a diff --git a/source/sw/stm32 b/source/sw/stm32 new file mode 160000 index 0000000..0d25f92 --- /dev/null +++ b/source/sw/stm32 @@ -0,0 +1 @@ +Subproject commit 0d25f920c9024a3a6f994b8f17b9b28ffa6e0930 diff --git a/source/sw/thirdparty/libtfm b/source/sw/thirdparty/libtfm new file mode 160000 index 0000000..269fc4e --- /dev/null +++ b/source/sw/thirdparty/libtfm @@ -0,0 +1 @@ +Subproject commit 269fc4e58f616a2cf1c318f494ec18a52991da8c diff --git a/source/user/ft/libcli b/source/user/ft/libcli new file mode 160000 index 0000000..54c6b86 --- /dev/null +++ b/source/user/ft/libcli @@ -0,0 +1 @@ +Subproject commit 54c6b8649b1a13e69a908c96e8d4d19cf8d72845 -- cgit v1.2.3