summaryrefslogtreecommitdiff
path: root/libdes/destest.c
diff options
context:
space:
mode:
authorGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 17:50:06 +0000
committerGravatar Greg Hudson <ghudson@mit.edu>1997-09-14 17:50:06 +0000
commitac16f380e349fa39ec7e26bccb5456cb300006a5 (patch)
treec07ca88af97b4f6b77d28a2dc723d2e4621ed302 /libdes/destest.c
parentd33e482744fad80d95cdd89ed380c5b8401e49bf (diff)
Pull in sources from zephyr locker. See /mit/zephyr/repository for
detailed change information.
Diffstat (limited to 'libdes/destest.c')
-rw-r--r--libdes/destest.c37
1 files changed, 0 insertions, 37 deletions
diff --git a/libdes/destest.c b/libdes/destest.c
deleted file mode 100644
index ad6333f..0000000
--- a/libdes/destest.c
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * $Source$
- * $Author$
- *
- * Copyright 1988 by the Massachusetts Institute of Technology.
- *
- * For copying and distribution information, please see the file
- * <mit-copyright.h>.
- */
-
-#ifndef lint
-static char rcsid_destest_c[] =
- "$Id$";
-#endif
-
-#include <mit-copyright.h>
-#include <stdio.h>
-#include <des.h>
-
-char clear[] = "eight bytes";
-char cipher[8];
-char key[8];
-Key_schedule schedule;
-
-main()
-{
- int i;
- string_to_key("good morning!", key);
- i = key_sched(key, schedule);
- if (i) {
- printf("bad schedule (%d)\n", i);
- exit(1);
- }
- for (i = 1; i <= 10000; i++)
- des_ecb_encrypt(clear, cipher, schedule, i&1);
- return 0;
-}