X-Git-Url: https://git.distorted.org.uk/~mdw/catacomb-perl/blobdiff_plain/a24b5cfdde0be71a5bb2b85d94be3b93c7719e2a..fcd15e0b7a3d0f0ca2f30953573f8d1f6b8e8bd2:/algs.PL diff --git a/algs.PL b/algs.PL index ce7d504..cab2dc5 100644 --- a/algs.PL +++ b/algs.PL @@ -1,6 +1,6 @@ # -*-perl-*- # -# $Id: algs.PL,v 1.2 2004/04/08 01:36:21 mdw Exp $ +# $Id$ # # Create tables of algorithms # @@ -31,13 +31,13 @@ idea safer safersk rc2 rc5 square rijndael rijndael192 rijndael256 - serpent + serpent noekeon skipjack mars tea xtea); @stream = qw(rc4 seal); -@hash = qw(md5 md4 md2 tiger - sha sha256 sha384 sha512 +@hash = qw(md5 md4 md2 tiger has160 + sha sha224 sha256 sha384 sha512 rmd128 rmd160 rmd256 rmd320); sub enum { @@ -62,7 +62,7 @@ sub cross { return @$x; } -open OUT, "> $ARGV[0]" or die "couldn't write `$ARGV[0].c': $!"; +open OUT, "> $ARGV[0]" or die "couldn't write `$ARGV[0]': $!"; print OUT < - EOF +print OUT cross("#include \n"), "\n"; print OUT cross("#include \n"), "\n"; -print OUT cross("#include \n"), "\n"; -print OUT cross("#include \n"), "\n"; -print OUT cross("#include \n"), "\n"; - -print OUT <\n"), "\n"; +print OUT cross("#include \n"), "\n"; -const gccipher *ciphertab[] = { -EOF -print OUT cross(" &", \@cipher, "_", [qw(ecb cbc cfb counter ofb)], ",\n"); -print OUT cross(" &", \@hash, "_", [qw(mgf)], ",\n"); -print OUT cross(" &", \@stream, ",\n"); print OUT <