[Cryptech-Commits] [user/paul/releng] 01/01: Initial commit

git at cryptech.is git at cryptech.is
Tue Jun 23 23:00:56 UTC 2015


This is an automated email from the git hooks/post-receive script.

paul at psgd.org pushed a commit to branch master
in repository user/paul/releng.

commit 959aa81417419a384fc6a54a0372aeb0127aea9b
Author: Paul Selkirk <paul at psgd.org>
Date:   Tue Jun 23 18:57:13 2015 -0400

    Initial commit
---
 .gitmodules                          | 36 ++++++++++++++++++++++++++++++++++++
 build-release.sh                     | 26 ++++++++++++++++++++++++++
 core/cipher/aes                      |  1 +
 core/cipher/chacha                   |  1 +
 core/comm/eim                        |  1 +
 core/hash/sha1                       |  1 +
 core/hash/sha256                     |  1 +
 core/hash/sha512                     |  1 +
 core/math/modexp                     |  1 +
 core/platform/common                 |  1 +
 core/platform/novena                 |  1 +
 core/rng/avalanche_entropy           |  1 +
 core/rng/rosc_entropy                |  1 +
 core/rng/trng                        |  1 +
 debian/changelog                     |  5 +++++
 debian/compat                        |  1 +
 debian/control                       | 13 +++++++++++++
 debian/copyright                     | 27 +++++++++++++++++++++++++++
 debian/patches/01-config-cores.patch | 27 +++++++++++++++++++++++++++
 debian/rules                         | 15 +++++++++++++++
 debian/source/format                 |  1 +
 21 files changed, 163 insertions(+)

diff --git a/.gitmodules b/.gitmodules
new file mode 100644
index 0000000..1a75e8b
--- /dev/null
+++ b/.gitmodules
@@ -0,0 +1,36 @@
+[submodule "core/cipher/aes"]
+	path = core/cipher/aes
+	url = git at git.cryptech.is:core/cipher/aes
+[submodule "core/cipher/chacha"]
+	path = core/cipher/chacha
+	url = git at git.cryptech.is:core/cipher/chacha
+[submodule "core/comm/eim"]
+	path = core/comm/eim
+	url = git at git.cryptech.is:core/comm/eim
+[submodule "core/hash/sha1"]
+	path = core/hash/sha1
+	url = git at git.cryptech.is:core/hash/sha1
+[submodule "core/hash/sha256"]
+	path = core/hash/sha256
+	url = git at git.cryptech.is:core/hash/sha256
+[submodule "core/hash/sha512"]
+	path = core/hash/sha512
+	url = git at git.cryptech.is:core/hash/sha512
+[submodule "core/math/modexp"]
+	path = core/math/modexp
+	url = git at git.cryptech.is:core/math/modexp
+[submodule "core/platform/common"]
+	path = core/platform/common
+	url = git at git.cryptech.is:core/platform/common
+[submodule "core/platform/novena"]
+	path = core/platform/novena
+	url = git at git.cryptech.is:core/platform/novena
+[submodule "core/rng/avalanche_entropy"]
+	path = core/rng/avalanche_entropy
+	url = git at git.cryptech.is:core/rng/avalanche_entropy
+[submodule "core/rng/rosc_entropy"]
+	path = core/rng/rosc_entropy
+	url = git at git.cryptech.is:core/rng/rosc_entropy
+[submodule "core/rng/trng"]
+	path = core/rng/trng
+	url = git at git.cryptech.is:core/rng/trng
diff --git a/build-release.sh b/build-release.sh
new file mode 100755
index 0000000..7afcf85
--- /dev/null
+++ b/build-release.sh
@@ -0,0 +1,26 @@
+#!/bin/sh -
+
+# Build a debian package for current Cryptech work
+
+# default release version name and number
+release=${1-cryptech-1.0}
+
+# set up a clean sandbox for building
+cd /tmp && git clone --recursive git at git.cryptech.is:user/paul/releng
+
+# make the source tarball
+tarname=echo $release | tr - _
+cd /tmp/releng && mv core $release && tar -cJ --exclude-vcs -f $tarname.orig.tar.xz $release
+
+# move the debian directory to where debuild expects it
+cd $release && mv ../debian .
+
+# apply patches (don't cores we don't need, because we're tight on space in the FPGA)
+patch -p1 <debian/patches/01-config-cores.patch
+
+# build the binary package (bitstream and software)
+debuild -us -uc -aarmhf
+
+# TODO:
+# sign the package
+# move it to the public repository
diff --git a/core/cipher/aes b/core/cipher/aes
new file mode 160000
index 0000000..fc8c932
--- /dev/null
+++ b/core/cipher/aes
@@ -0,0 +1 @@
+Subproject commit fc8c9324320af3fc258df33f176583506ea5de38
diff --git a/core/cipher/chacha b/core/cipher/chacha
new file mode 160000
index 0000000..549b75a
--- /dev/null
+++ b/core/cipher/chacha
@@ -0,0 +1 @@
+Subproject commit 549b75a635817ce263c368c9b8b5b0b07f90ec21
diff --git a/core/comm/eim b/core/comm/eim
new file mode 160000
index 0000000..9ed8ee7
--- /dev/null
+++ b/core/comm/eim
@@ -0,0 +1 @@
+Subproject commit 9ed8ee7596023a6f4e43d8468bbdd0473c6570ed
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..22c547c
--- /dev/null
+++ b/core/math/modexp
@@ -0,0 +1 @@
+Subproject commit 22c547c903ee57e47460ae0a026348da3913d7b2
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..ce8f42a
--- /dev/null
+++ b/core/platform/novena
@@ -0,0 +1 @@
+Subproject commit ce8f42a5182a4c365e9ae2703f41efdefa6420c9
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
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..797fb33
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+cryptech (1.0-1) UNRELEASED; urgency=medium
+
+  * Initial release. (Closes: #XXXXXX)
+
+ -- Paul Selkirk <paul at psgd.org>  Thu, 18 Jun 2015 23:39:53 -0400
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..74dd394
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,13 @@
+Source: cryptech
+Maintainer: Paul Selkirk <paul at psgd.org>
+Section: misc
+Priority: optional
+Standards-Version: 3.9.6
+Build-Depends: debhelper (>= 9)
+
+Package: cryptech
+Architecture: armhf
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: Cryptech open-source crypto hardware
+ This contains FGPA configuration and software for the Cryptech project on
+ the Novena PVT-1 development board.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..fd7518e
--- /dev/null
+++ b/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/debian/patches/01-config-cores.patch b/debian/patches/01-config-cores.patch
new file mode 100644
index 0000000..b19fd73
--- /dev/null
+++ b/debian/patches/01-config-cores.patch
@@ -0,0 +1,27 @@
+Description: configure core selectors for cryptech dnssec signer
+
+--- cryptech-1.0.orig/platform/common/core_selector/src/rtl/cipher_selector.v
++++ cryptech-1.0/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
+ 
+ 
+    //----------------------------------------------------------------
+--- cryptech-1.0.orig/platform/common/core_selector/src/rtl/hash_selector.v
++++ cryptech-1.0/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/debian/rules b/debian/rules
new file mode 100755
index 0000000..7e1aa3b
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,15 @@
+#!/usr/bin/make -f
+%:
+	dh $@
+
+override_dh_auto_build:
+	cd platform/novena/sw && $(MAKE) CC=arm-linux-gnueabihf-gcc ARM=arm-linux-gnueabihf-ar
+	cd platform/novena/eim/build && $(MAKE)
+
+override_dh_auto_clean:
+	cd platform/novena/sw && $(MAKE) clean
+	cd platform/novena/eim/build && $(MAKE) clean
+
+override_dh_auto_install:
+	cd platform/novena/sw && $(MAKE) PREFIX=$$(pwd)/../../../debian/cryptech/usr install
+	install platform/novena/eim/build/novena_eim.bit ./debian/cryptech/usr/share/cryptech/
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)



More information about the Commits mailing list