regress signify
authortedu <tedu@openbsd.org>
Thu, 9 Jan 2014 16:13:44 +0000 (16:13 +0000)
committertedu <tedu@openbsd.org>
Thu, 9 Jan 2014 16:13:44 +0000 (16:13 +0000)
regress/usr.bin/signify/Makefile [new file with mode: 0644]
regress/usr.bin/signify/forgery.txt [new file with mode: 0644]
regress/usr.bin/signify/forgery.txt.sig [new file with mode: 0644]
regress/usr.bin/signify/orders.txt [new file with mode: 0644]
regress/usr.bin/signify/orders.txt.sig [new file with mode: 0644]
regress/usr.bin/signify/regresskey.pub [new file with mode: 0644]
regress/usr.bin/signify/regresskey.sec [new file with mode: 0644]
regress/usr.bin/signify/signify.sh [new file with mode: 0644]

diff --git a/regress/usr.bin/signify/Makefile b/regress/usr.bin/signify/Makefile
new file mode 100644 (file)
index 0000000..cc761de
--- /dev/null
@@ -0,0 +1,6 @@
+#      $OpenBSD: Makefile,v 1.1 2014/01/09 16:13:44 tedu Exp $
+
+regress:
+       @sh ${.CURDIR}/signify.sh ${.CURDIR}
+
+.include <bsd.regress.mk>
diff --git a/regress/usr.bin/signify/forgery.txt b/regress/usr.bin/signify/forgery.txt
new file mode 100644 (file)
index 0000000..aad8350
--- /dev/null
@@ -0,0 +1 @@
+Attack at dusk!
diff --git a/regress/usr.bin/signify/forgery.txt.sig b/regress/usr.bin/signify/forgery.txt.sig
new file mode 100644 (file)
index 0000000..fd9a975
--- /dev/null
@@ -0,0 +1,2 @@
+untrusted comment: signify signature
+RWTAeKJJ1MTF3UpxzBCu6NaM6HPJNTj5CZ+M5XNJKNeEHBLQSsstzHGbSo8rPYNgw3Z98pN7WKiIwBIyRrKuIdKBRA6qlaci6wI=
diff --git a/regress/usr.bin/signify/orders.txt b/regress/usr.bin/signify/orders.txt
new file mode 100644 (file)
index 0000000..97341e7
--- /dev/null
@@ -0,0 +1 @@
+Attack at dawn!
diff --git a/regress/usr.bin/signify/orders.txt.sig b/regress/usr.bin/signify/orders.txt.sig
new file mode 100644 (file)
index 0000000..fd9a975
--- /dev/null
@@ -0,0 +1,2 @@
+untrusted comment: signify signature
+RWTAeKJJ1MTF3UpxzBCu6NaM6HPJNTj5CZ+M5XNJKNeEHBLQSsstzHGbSo8rPYNgw3Z98pN7WKiIwBIyRrKuIdKBRA6qlaci6wI=
diff --git a/regress/usr.bin/signify/regresskey.pub b/regress/usr.bin/signify/regresskey.pub
new file mode 100644 (file)
index 0000000..5b82d01
--- /dev/null
@@ -0,0 +1,2 @@
+untrusted comment: signify public key
+RWTAeKJJ1MTF3YCo0ivtKH8kuiFWJuLpNoUmpDd6iTFYhn6/tRu5qKJe
diff --git a/regress/usr.bin/signify/regresskey.sec b/regress/usr.bin/signify/regresskey.sec
new file mode 100644 (file)
index 0000000..7cf243a
--- /dev/null
@@ -0,0 +1,2 @@
+untrusted comment: signify secret key
+RWRCSwAAAAASS6/J8yiU/PaMmMhlV4zqjMh4FlqOsG3AeKJJ1MTF3UpTLTAaUkS15G97BU/C+X2UCcR2fNfG68/1NpK0bh0pgKjSK+0ofyS6IVYm4uk2hSakN3qJMViGfr+1G7mool4=
diff --git a/regress/usr.bin/signify/signify.sh b/regress/usr.bin/signify/signify.sh
new file mode 100644 (file)
index 0000000..f951db8
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh
+#
+# $OpenBSD: signify.sh,v 1.1 2014/01/09 16:13:44 tedu Exp $
+
+srcdir=$1
+
+pubkey="$srcdir/regresskey.pub"
+seckey="$srcdir/regresskey.sec"
+orders="$srcdir/orders.txt"
+forgery="$srcdir/forgery.txt"
+
+set -e
+
+signify -p $pubkey -V $orders > /dev/null
+signify -p $pubkey -V $forgery 2> /dev/null && exit 1
+
+true