diff options
Diffstat (limited to 'checks/conventional-mdc.test')
-rwxr-xr-x | checks/conventional-mdc.test | 25 |
1 files changed, 23 insertions, 2 deletions
diff --git a/checks/conventional-mdc.test b/checks/conventional-mdc.test index 463e0c49f..95a6ba476 100755 --- a/checks/conventional-mdc.test +++ b/checks/conventional-mdc.test @@ -2,9 +2,31 @@ . $srcdir/defs.inc || exit 3 +algos="3des" + +if have_cipher_algo "idea"; then + algos="$algos idea" +fi + +if have_cipher_algo "cast5"; then + algos="$algos idea" +fi + +if have_cipher_algo "blowfish"; then + algos="$algos idea" +fi + +if have_cipher_algo "aes"; then + algos="$algos aes aes192 aes256" +fi + +if have_cipher_algo "twofish"; then + algos="$algos twofish" +fi + #info Checking conventional encryption for i in 0 1 2 3 9 10 11 19 20 21 22 23 39 40 41 8192 32000 ; do - for ciph in 3des cast5 blowfish twofish rijndael; do + for ciph in $algos; do # *BSD's dd can't cope with a count of 0 if test "$i" = "0"; then : >z @@ -18,4 +40,3 @@ for i in 0 1 2 3 9 10 11 19 20 21 22 23 39 40 41 8192 32000 ; do cmp z y || error "$ciph/$i: mismatch" done done - |