aboutsummaryrefslogtreecommitdiff
path: root/cmd/sigsum/test
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/sigsum/test')
-rw-r--r--cmd/sigsum/test/keys/signify.pub2
-rw-r--r--cmd/sigsum/test/keys/signify.sec2
-rw-r--r--cmd/sigsum/test/keys/ssh7
-rw-r--r--cmd/sigsum/test/keys/ssh.pub1
-rwxr-xr-xcmd/sigsum/test/signify.sh55
-rwxr-xr-xcmd/sigsum/test/ssh.sh53
6 files changed, 0 insertions, 120 deletions
diff --git a/cmd/sigsum/test/keys/signify.pub b/cmd/sigsum/test/keys/signify.pub
deleted file mode 100644
index 742a66a..0000000
--- a/cmd/sigsum/test/keys/signify.pub
+++ /dev/null
@@ -1,2 +0,0 @@
-untrusted comment: signify public key
-RWQhuW/GnP7W13NSC8qzkpnB1BJXk96/GhaWe6f/OpBvMRHFdwuUIYGb
diff --git a/cmd/sigsum/test/keys/signify.sec b/cmd/sigsum/test/keys/signify.sec
deleted file mode 100644
index 57cdf84..0000000
--- a/cmd/sigsum/test/keys/signify.sec
+++ /dev/null
@@ -1,2 +0,0 @@
-untrusted comment: signify secret key
-RWRCSwAAACrUdp2uXyio8Rdwv0W6PLGiUQei6JeOZAYhuW/GnP7W1655JdycJo4tbOh/ba1OxA7QyVSdNFBs5SyF4eM5yIE98xhTAtizBDxki1Y3sqcFvWFH8ZlKzRjY8rUrTYaaCQE=
diff --git a/cmd/sigsum/test/keys/ssh b/cmd/sigsum/test/keys/ssh
deleted file mode 100644
index 2bbd974..0000000
--- a/cmd/sigsum/test/keys/ssh
+++ /dev/null
@@ -1,7 +0,0 @@
------BEGIN OPENSSH PRIVATE KEY-----
-b3BlbnNzaC1rZXktdjEAAAAABG5vbmUAAAAEbm9uZQAAAAAAAAABAAAAMwAAAAtzc2gtZW
-QyNTUxOQAAACC/0wdPezO/W1upVq2RduQ/ieEHn0r6LgwkXEINfJ52fQAAAJCRqZKpkamS
-qQAAAAtzc2gtZWQyNTUxOQAAACC/0wdPezO/W1upVq2RduQ/ieEHn0r6LgwkXEINfJ52fQ
-AAAEClIbTUqSPBTrfD9MCpwTF1Fwit4NXU2ci3R57uq4Aic7/TB097M79bW6lWrZF25D+J
-4QefSvouDCRcQg18nnZ9AAAACmxpbnVzQGJlc2sBAgM=
------END OPENSSH PRIVATE KEY-----
diff --git a/cmd/sigsum/test/keys/ssh.pub b/cmd/sigsum/test/keys/ssh.pub
deleted file mode 100644
index 14588ac..0000000
--- a/cmd/sigsum/test/keys/ssh.pub
+++ /dev/null
@@ -1 +0,0 @@
-ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIL/TB097M79bW6lWrZF25D+J4QefSvouDCRcQg18nnZ9 linus@besk
diff --git a/cmd/sigsum/test/signify.sh b/cmd/sigsum/test/signify.sh
deleted file mode 100755
index 8e86e8d..0000000
--- a/cmd/sigsum/test/signify.sh
+++ /dev/null
@@ -1,55 +0,0 @@
-#!/bin/bash
-
-set -e
-trap cleanup EXIT
-
-pass=1234
-priv=keys/signify.sec
-pub=keys/signify.pub
-domain_hint=_sigsum_v0.test-only.rgdd.se
-msg=msg-$(date +%s)
-num_msg=3
-
-function cleanup() {
- set +e
-
- rm -f sigsum
- for i in $(seq 1 $num_msg); do
- rm -f $msg-$i{,.trunnel,.sig}
- done
-
- exit
-}
-
-go build ../
-
-files=""
-for i in $(seq 1 $num_msg); do
- echo $msg-$i > $msg-$i
- if ! ./sigsum format $msg-$i > $msg-$i.trunnel; then
- echo "[FAIL] format for $num_msg signify message(s)" >&2
- exit 1
- fi
- if ! echo $pass | signify-openbsd -Ss $priv -m $msg-$i.trunnel -x $msg-$i.sig; then
- echo "[FAIL] sign for $num_msg signify message(s)" >&2
- exit 1
- fi
- files=$(echo -n $files $msg-$i)
-done
-
-echo "[PASS] format for $num_msg signify message(s)" >&2
-echo "[PASS] sign for $num_msg signify message(s)" >&2
-
-if ! ./sigsum bundle -t signify -k $pub -d $domain_hint $files; then
- echo "[FAIL] bundle for $num_msg signify message(s)" >&2
- exit 1
-fi
-
-echo "[PASS] bundle for $num_msg signify message(s)" >&2
-
-if ! ./sigsum verify -t signify -k $pub $files; then
- echo "[FAIL] verify for $num_msg signify message(s)" >&2
- exit 1
-fi
-
-echo "[PASS] verify for $num_msg signify message(s)" >&2
diff --git a/cmd/sigsum/test/ssh.sh b/cmd/sigsum/test/ssh.sh
deleted file mode 100755
index 56cae70..0000000
--- a/cmd/sigsum/test/ssh.sh
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/bin/bash
-
-set -eu
-trap cleanup EXIT
-
-priv=keys/ssh
-pub=keys/ssh.pub
-domain_hint=_sigsum_v0.ssh.test.sigsum.org
-msg=msg-$(date +%s)
-num_msg=3
-
-function cleanup() {
- set +e
-
- rm -f sigsum
- for i in $(seq 1 $num_msg); do
- rm -f $msg-$i{,.trunnel,.sig}
- done
-
- exit
-}
-
-go build ../
-
-files=""
-for i in $(seq 1 $num_msg); do
- echo $msg-$i > $msg-$i
- if ! openssl dgst -binary $msg-$i | ssh-keygen \
- -Y sign \
- -O hashalg=sha256 \
- -f $priv \
- -n $(./sigsum namespace) > $msg-$i.sig ; then
- echo "[FAIL] sign for $num_msg ssh message(s)" >&2
- exit 1
- fi
- files=$(echo -n $files $msg-$i)
-done
-
-echo "[PASS] sign for $num_msg ssh message(s)" >&2
-
-if ! ./sigsum bundle -t ssh -k $pub -d $domain_hint $files; then
- echo "[FAIL] bundle for $num_msg ssh message(s)" >&2
- exit 1
-fi
-
-echo "[PASS] bundle for $num_msg ssh message(s)" >&2
-
-if ! ./sigsum verify -t ssh -k $pub $files; then
- echo "[FAIL] verify for $num_msg ssh message(s)" >&2
- exit 1
-fi
-
-echo "[PASS] verify for $num_msg ssh message(s)" >&2