summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/des/t/test
diff options
context:
space:
mode:
authortedu <>2014-04-21 02:44:28 +0000
committertedu <>2014-04-21 02:44:28 +0000
commitf46c697a11680ae5d3ab06393f0bfe2ed1841168 (patch)
tree98bf652749a50fd1fd8b3611d645d93d5162e61d /src/lib/libcrypto/des/t/test
parent95e3894333d0ad24d4efff2ff5857bccabc5d691 (diff)
downloadopenbsd-f46c697a11680ae5d3ab06393f0bfe2ed1841168.tar.gz
openbsd-f46c697a11680ae5d3ab06393f0bfe2ed1841168.tar.bz2
openbsd-f46c697a11680ae5d3ab06393f0bfe2ed1841168.zip
clean up files we don't need
Diffstat (limited to 'src/lib/libcrypto/des/t/test')
-rw-r--r--src/lib/libcrypto/des/t/test27
1 files changed, 0 insertions, 27 deletions
diff --git a/src/lib/libcrypto/des/t/test b/src/lib/libcrypto/des/t/test
deleted file mode 100644
index 97acd0552e..0000000000
--- a/src/lib/libcrypto/des/t/test
+++ /dev/null
@@ -1,27 +0,0 @@
1#!./perl
2
3BEGIN { push(@INC, qw(../../../lib ../../lib ../lib lib)); }
4
5use DES;
6
7$key='00000000';
8$ks=DES::set_key($key);
9@a=split(//,$ks);
10foreach (@a) { printf "%02x-",ord($_); }
11print "\n";
12
13
14$key=DES::random_key();
15print "($_)\n";
16@a=split(//,$key);
17foreach (@a) { printf "%02x-",ord($_); }
18print "\n";
19$str="this is and again into the breach";
20($k1,$k2)=DES::string_to_2keys($str);
21@a=split(//,$k1);
22foreach (@a) { printf "%02x-",ord($_); }
23print "\n";
24@a=split(//,$k2);
25foreach (@a) { printf "%02x-",ord($_); }
26print "\n";
27