summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2015-08-14 13:12:13 +0200
committerStefan Metzmacher <metze@samba.org>2015-08-31 10:18:15 +0200
commit33c7c5ae3c078728a80445bf87572af8cf24a05f (patch)
treebb64e49bf1442d981520f107bd1af2334f6faf5e
parent862b204e865145e4616320607fc41d99ae0157bc (diff)
downloadsamba-33c7c5ae3c078728a80445bf87572af8cf24a05f.tar.gz
lib/crypto: run all aes_gcm_128 testcases
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> (cherry picked from commit 683eda2f92cd296e36c57d96d6f0b22dde1819f4)
-rw-r--r--lib/crypto/aes_gcm_128_test.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/crypto/aes_gcm_128_test.c b/lib/crypto/aes_gcm_128_test.c
index 703ad8698cd..f70d8519e82 100644
--- a/lib/crypto/aes_gcm_128_test.c
+++ b/lib/crypto/aes_gcm_128_test.c
@@ -104,7 +104,7 @@ bool torture_local_crypto_aes_gcm_128(struct torture_context *torture)
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;
@@ -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;
@@ -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;
@@ -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;