From de6d17659a4308b2313e633b0bf5f62946bbd741 Mon Sep 17 00:00:00 2001 From: Rob Austein Date: Sun, 5 Jul 2015 00:47:00 -0400 Subject: Rearrange tree to make filenames in source packages come out right. --- core/Makefile | 49 ++++++++++++++++++++++++++++++++++++++ core/cipher/aes | 1 + core/cipher/chacha | 1 + core/comm/eim | 1 + core/debian/compat | 1 + core/debian/control | 14 +++++++++++ core/debian/copyright | 27 +++++++++++++++++++++ core/debian/rules | 4 ++++ core/debian/source/format | 1 + core/hash/sha1 | 1 + core/hash/sha256 | 1 + core/hash/sha512 | 1 + core/math/modexp | 1 + core/patches/01-config-cores.patch | 27 +++++++++++++++++++++ core/platform/common | 1 + core/platform/novena | 1 + core/rng/avalanche_entropy | 1 + core/rng/rosc_entropy | 1 + core/rng/trng | 1 + 19 files changed, 135 insertions(+) create mode 100644 core/Makefile create mode 160000 core/cipher/aes create mode 160000 core/cipher/chacha create mode 160000 core/comm/eim create mode 100644 core/debian/compat create mode 100644 core/debian/control create mode 100644 core/debian/copyright create mode 100755 core/debian/rules create mode 100644 core/debian/source/format create mode 160000 core/hash/sha1 create mode 160000 core/hash/sha256 create mode 160000 core/hash/sha512 create mode 160000 core/math/modexp create mode 100644 core/patches/01-config-cores.patch create mode 160000 core/platform/common create mode 160000 core/platform/novena create mode 160000 core/rng/avalanche_entropy create mode 160000 core/rng/rosc_entropy create mode 160000 core/rng/trng (limited to 'core') diff --git a/core/Makefile b/core/Makefile new file mode 100644 index 0000000..9dadbcd --- /dev/null +++ b/core/Makefile @@ -0,0 +1,49 @@ +# Makefile to build Debian package for Cryptech Novena PVT-1 FPGA +# bitstream. +# +# Author: Rob Austein +# Copyright (c) 2015, SUNET +# +# Redistribution and use in source and binary forms, with or +# without modification, are permitted provided that the following +# conditions are met: +# +# 1. Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# 2. 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. +# +# 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 OWNER 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. + +# Directory where we run Verilog synthesis + +BUILD_DIR := platform/novena/eim/build + +# This business of patching files that are under revision control +# because we can't be bothered to generate a proper configuration file +# is kind of nasty. + +all: + patch -p1 --forward +Section: misc +Priority: optional +Standards-Version: 3.9.6 +Build-Depends: debhelper (>= 9) +Homepage: http://trac.cryptech.is/wiki + +Package: cryptech-novena-rtl +Architecture: all +Depends: libc6 (>= 2.13), ${misc:Depends} +Description: Cryptech open-source crypto hardware + "cryptech-novena-rtl" contains FGPA configuration (RTL bitstream) for the Cryptech project on + the Novena PVT-1 development board. diff --git a/core/debian/copyright b/core/debian/copyright new file mode 100644 index 0000000..fd7518e --- /dev/null +++ b/core/debian/copyright @@ -0,0 +1,27 @@ +Copyright (c) 2015, 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/core/debian/rules b/core/debian/rules new file mode 100755 index 0000000..2d33f6a --- /dev/null +++ b/core/debian/rules @@ -0,0 +1,4 @@ +#!/usr/bin/make -f + +%: + dh $@ diff --git a/core/debian/source/format b/core/debian/source/format new file mode 100644 index 0000000..89ae9db --- /dev/null +++ b/core/debian/source/format @@ -0,0 +1 @@ +3.0 (native) diff --git a/core/hash/sha1 b/core/hash/sha1 new file mode 160000 index 0000000..febb275 --- /dev/null +++ b/core/hash/sha1 @@ -0,0 +1 @@ +Subproject commit febb27562431216a080cb980fdcda09454e72c38 diff --git a/core/hash/sha256 b/core/hash/sha256 new file mode 160000 index 0000000..ce56b11 --- /dev/null +++ b/core/hash/sha256 @@ -0,0 +1 @@ +Subproject commit ce56b11187b92572193fa9327841ad2ef2e792f8 diff --git a/core/hash/sha512 b/core/hash/sha512 new file mode 160000 index 0000000..51ad57c --- /dev/null +++ b/core/hash/sha512 @@ -0,0 +1 @@ +Subproject commit 51ad57c37bb4a0f59e4af4ee069ac18f8fb9284e diff --git a/core/math/modexp b/core/math/modexp new file mode 160000 index 0000000..e61c650 --- /dev/null +++ b/core/math/modexp @@ -0,0 +1 @@ +Subproject commit e61c65059054df407206e58b88a1b203f5ad3c3e diff --git a/core/patches/01-config-cores.patch b/core/patches/01-config-cores.patch new file mode 100644 index 0000000..245e8a3 --- /dev/null +++ b/core/patches/01-config-cores.patch @@ -0,0 +1,27 @@ +Description: configure core selectors for cryptech dnssec signer + +--- core/platform/common/core_selector/src/rtl/cipher_selector.v~ ++++ core/platform/common/core_selector/src/rtl/cipher_selector.v +@@ -67,7 +67,7 @@ module cipher_selector + //---------------------------------------------------------------- + // Comment following lines to exclude cores from implementation. + `define USE_CORE_AES +- `define USE_CORE_CHACHA ++// `define USE_CORE_CHACHA + + + //---------------------------------------------------------------- +--- core/platform/common/core_selector/src/rtl/hash_selector.v~ ++++ core/platform/common/core_selector/src/rtl/hash_selector.v +@@ -125,9 +125,9 @@ XXX move to `define in wrapper core?? + // List of Available Cores + //---------------------------------------------------------------- + // Comment following lines to exclude cores from implementation. +- `define USE_CORE_SHA1 ++// `define USE_CORE_SHA1 + `define USE_CORE_SHA256 +- `define USE_CORE_SHA512 ++// `define USE_CORE_SHA512 + + + //---------------------------------------------------------------- diff --git a/core/platform/common b/core/platform/common new file mode 160000 index 0000000..f05a3c6 --- /dev/null +++ b/core/platform/common @@ -0,0 +1 @@ +Subproject commit f05a3c65ec65004b097cb63d5ac6d463a7a9dc2f diff --git a/core/platform/novena b/core/platform/novena new file mode 160000 index 0000000..33cc55a --- /dev/null +++ b/core/platform/novena @@ -0,0 +1 @@ +Subproject commit 33cc55adaf9ff31473802414f9c0d6e4a553cddf diff --git a/core/rng/avalanche_entropy b/core/rng/avalanche_entropy new file mode 160000 index 0000000..4a0c596 --- /dev/null +++ b/core/rng/avalanche_entropy @@ -0,0 +1 @@ +Subproject commit 4a0c59617c582ef3f0e558067f913309db772f75 diff --git a/core/rng/rosc_entropy b/core/rng/rosc_entropy new file mode 160000 index 0000000..4c3b76c --- /dev/null +++ b/core/rng/rosc_entropy @@ -0,0 +1 @@ +Subproject commit 4c3b76c5b8d2809b236d2396ed6a8b36be4587e8 diff --git a/core/rng/trng b/core/rng/trng new file mode 160000 index 0000000..d5974ed --- /dev/null +++ b/core/rng/trng @@ -0,0 +1 @@ +Subproject commit d5974ed0d389f8953b23d98bb69b1576adad27b8 -- cgit v1.2.3