1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

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>
This commit is contained in:
Stefan Metzmacher 2015-08-14 13:12:13 +02:00 committed by Jeremy Allison
parent 7c4117f5da
commit 683eda2f92

View 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");
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;