#!/usr/bin/perl # to run the full verification suite: # curl http://info.isl.ntt.co.jp/crypt/eng/camellia/dl/cryptrec/t_camellia.txt |perl ./t_camellia.pl >cfull_test.go # perl -pi -e 's/range camelliaTests/$&Full/' camellia_test.go # go test print <) { next if /^\s*$/ or /^Camellia/; if (/^K/) { $k = linetostr($_); } if (/^P/) { $p = linetostr($_); } if (/^C/) { $c = linetostr($_); print <<"GOCODE"; { []byte{$k}, []byte{$p}, []byte{$c}, }, GOCODE } } print <