From d10ed58e11ce8d98ba39834dfee56728276568c1 Mon Sep 17 00:00:00 2001 From: tedu Date: Thu, 9 Jan 2014 16:13:44 +0000 Subject: [PATCH] regress signify --- regress/usr.bin/signify/Makefile | 6 ++++++ regress/usr.bin/signify/forgery.txt | 1 + regress/usr.bin/signify/forgery.txt.sig | 2 ++ regress/usr.bin/signify/orders.txt | 1 + regress/usr.bin/signify/orders.txt.sig | 2 ++ regress/usr.bin/signify/regresskey.pub | 2 ++ regress/usr.bin/signify/regresskey.sec | 2 ++ regress/usr.bin/signify/signify.sh | 17 +++++++++++++++++ 8 files changed, 33 insertions(+) create mode 100644 regress/usr.bin/signify/Makefile create mode 100644 regress/usr.bin/signify/forgery.txt create mode 100644 regress/usr.bin/signify/forgery.txt.sig create mode 100644 regress/usr.bin/signify/orders.txt create mode 100644 regress/usr.bin/signify/orders.txt.sig create mode 100644 regress/usr.bin/signify/regresskey.pub create mode 100644 regress/usr.bin/signify/regresskey.sec create mode 100644 regress/usr.bin/signify/signify.sh diff --git a/regress/usr.bin/signify/Makefile b/regress/usr.bin/signify/Makefile new file mode 100644 index 00000000000..cc761de5db3 --- /dev/null +++ b/regress/usr.bin/signify/Makefile @@ -0,0 +1,6 @@ +# $OpenBSD: Makefile,v 1.1 2014/01/09 16:13:44 tedu Exp $ + +regress: + @sh ${.CURDIR}/signify.sh ${.CURDIR} + +.include diff --git a/regress/usr.bin/signify/forgery.txt b/regress/usr.bin/signify/forgery.txt new file mode 100644 index 00000000000..aad8350f173 --- /dev/null +++ b/regress/usr.bin/signify/forgery.txt @@ -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 index 00000000000..fd9a9751eaa --- /dev/null +++ b/regress/usr.bin/signify/forgery.txt.sig @@ -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 index 00000000000..97341e73cc6 --- /dev/null +++ b/regress/usr.bin/signify/orders.txt @@ -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 index 00000000000..fd9a9751eaa --- /dev/null +++ b/regress/usr.bin/signify/orders.txt.sig @@ -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 index 00000000000..5b82d011882 --- /dev/null +++ b/regress/usr.bin/signify/regresskey.pub @@ -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 index 00000000000..7cf243a6d19 --- /dev/null +++ b/regress/usr.bin/signify/regresskey.sec @@ -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 index 00000000000..f951db8c7f3 --- /dev/null +++ b/regress/usr.bin/signify/signify.sh @@ -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 -- 2.20.1