lib/crypto: run all aes_gcm_128 testcases
authorStefan Metzmacher <metze@samba.org>
Fri, 14 Aug 2015 11:12:13 +0000 (13:12 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 27 Aug 2015 18:23:20 +0000 (20:23 +0200)
We should not skip the first one.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=11451

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/crypto/aes_gcm_128_test.c

index 703ad8698cdb4c02b3320e873dea62eef972dd8f..f70d8519e823d98f3c6f06a0d676bb9f8d600f25 100644 (file)
@@ -104,7 +104,7 @@ bool torture_local_crypto_aes_gcm_128(struct torture_context *torture)
        testarray[3].T = strhex_to_data_blob(tctx,
                                "5bc94fbc3221a5db94fae95ae7121a47");
 
        testarray[3].T = strhex_to_data_blob(tctx,
                                "5bc94fbc3221a5db94fae95ae7121a47");
 
-       for (i=1; testarray[i].T.length != 0; i++) {
+       for (i=0; testarray[i].T.length != 0; i++) {
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB C;
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB C;
@@ -167,7 +167,7 @@ bool torture_local_crypto_aes_gcm_128(struct torture_context *torture)
                }
        }
 
                }
        }
 
-       for (i=1; testarray[i].T.length != 0; i++) {
+       for (i=0; testarray[i].T.length != 0; i++) {
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB C;
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB C;
@@ -233,7 +233,7 @@ bool torture_local_crypto_aes_gcm_128(struct torture_context *torture)
                }
        }
 
                }
        }
 
-       for (i=1; testarray[i].T.length != 0; i++) {
+       for (i=0; testarray[i].T.length != 0; i++) {
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB P;
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB P;
@@ -299,7 +299,7 @@ bool torture_local_crypto_aes_gcm_128(struct torture_context *torture)
                }
        }
 
                }
        }
 
-       for (i=1; testarray[i].T.length != 0; i++) {
+       for (i=0; testarray[i].T.length != 0; i++) {
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB P;
                struct aes_gcm_128_context ctx;
                uint8_t T[AES_BLOCK_SIZE];
                DATA_BLOB P;