diff options
author | Jung-uk Kim <jkim@FreeBSD.org> | 2015-12-03 17:25:26 +0000 |
---|---|---|
committer | Jung-uk Kim <jkim@FreeBSD.org> | 2015-12-03 17:25:26 +0000 |
commit | 145e3a85931a836f8dccec73e02594f7255abcfd (patch) | |
tree | 03b95bb4075b5bfadd5b0dabf3c4233035d6b774 /crypto/des/t/test | |
parent | d7a2d00e5375699d95f3720a7b779ded3c805b5f (diff) |
Notes
Diffstat (limited to 'crypto/des/t/test')
-rw-r--r-- | crypto/des/t/test | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/crypto/des/t/test b/crypto/des/t/test deleted file mode 100644 index 97acd0552e43..000000000000 --- a/crypto/des/t/test +++ /dev/null @@ -1,27 +0,0 @@ -#!./perl - -BEGIN { push(@INC, qw(../../../lib ../../lib ../lib lib)); } - -use DES; - -$key='00000000'; -$ks=DES::set_key($key); -@a=split(//,$ks); -foreach (@a) { printf "%02x-",ord($_); } -print "\n"; - - -$key=DES::random_key(); -print "($_)\n"; -@a=split(//,$key); -foreach (@a) { printf "%02x-",ord($_); } -print "\n"; -$str="this is and again into the breach"; -($k1,$k2)=DES::string_to_2keys($str); -@a=split(//,$k1); -foreach (@a) { printf "%02x-",ord($_); } -print "\n"; -@a=split(//,$k2); -foreach (@a) { printf "%02x-",ord($_); } -print "\n"; - |