detect and use older PKITS data
[openssl.git] / test / test_aesni
index 87f5da1..8c201bc 100755 (executable)
@@ -14,23 +14,18 @@ else
     exit 1;
 fi
 
-if $PROG engine aesni | grep aesni; then
+if $PROG engine aesni | grep -v no-aesni; then
 
     HASH=`cat $PROG | $PROG dgst -hex`
 
-    ACE_ALGS=" aes-128-ecb aes-192-ecb aes-256-ecb \
-               aes-128-cbc aes-192-cbc aes-256-cbc \
-               aes-128-cfb aes-192-cfb aes-256-cfb \
-               aes-128-ofb aes-192-ofb aes-256-ofb"
-    BUFSIZE="16 32 48 64 80 96 128 999"
-    ACE_ALGS=" aes-128-cbc aes-192-cbc aes-256-cbc \
-               aes-128-cfb aes-192-cfb aes-256-cfb \
-               aes-128-ofb aes-192-ofb aes-256-ofb"
-    BUFSIZE="48 64 80 96 128 999"
+    AES_ALGS=" aes-128-ctr aes-128-ecb aes-128-cbc aes-128-cfb aes-128-ofb \
+               aes-192-ctr aes-192-ecb aes-192-cbc aes-192-cfb aes-192-ofb \
+               aes-256-ctr aes-256-ecb aes-256-cbc aes-256-cfb aes-256-ofb"
+    BUFSIZE="16 32 48 64 80 96 128 144 999"
 
     nerr=0
 
-    for alg in $ACE_ALGS; do
+    for alg in $AES_ALGS; do
        echo $alg
        for bufsize in $BUFSIZE; do
            TEST=`(     cat $PROG | \