From baba755d21188196b249534681d7b18b08f1c825 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Fri, 5 Mar 1999 03:35:20 +0100
Subject: [PATCH] *** empty log message ***

Rev: src/symmetric/.cvsignore:1.7
Rev: src/symmetric/twofish_test.c:1.1
---
 .cvsignore     |  2 ++
 .gitignore     |  2 ++
 twofish_test.c | 42 ++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 46 insertions(+)
 create mode 100644 twofish_test.c

diff --git a/.cvsignore b/.cvsignore
index ac18acf8..a7773e72 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -17,6 +17,8 @@ desSmallCore.c
 desSmallFips.c
 desTest
 desdata
+generate_q
 keymap.h
 parity.h
 rotors.h
+twofish_test
diff --git a/.gitignore b/.gitignore
index a103d4bf..5c4a5b09 100644
--- a/.gitignore
+++ b/.gitignore
@@ -49,6 +49,8 @@ core
 /desSmallFips.c
 /desTest
 /desdata
+/generate_q
 /keymap.h
 /parity.h
 /rotors.h
+/twofish_test
diff --git a/twofish_test.c b/twofish_test.c
new file mode 100644
index 00000000..1e89fc67
--- /dev/null
+++ b/twofish_test.c
@@ -0,0 +1,42 @@
+/* twofish_test.c
+ *
+ * $Id$
+ */
+
+/* lsh, an implementation of the ssh protocol
+ *
+ * Copyright (C) 1998 Niels M�ller
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#include "twofish.h"
+
+#include <stdio.h>
+#include <stdlib.h>
+
+int main (int argc UNUSED, char **argv UNUSED)
+{
+  if (twofish_selftest())
+    {
+      fprintf(stderr, "Twofish works.\n");
+      return EXIT_SUCCESS;
+    }
+  else
+    {
+      fprintf(stderr, "ERROR: Twofish failed.\n");
+      return EXIT_FAILURE;
+    }
+}
-- 
GitLab