summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorNicolas Norvez <norvez@chromium.org>2018-09-21 10:37:04 -0700
committerchrome-bot <chrome-bot@chromium.org>2018-09-21 19:50:16 -0700
commit5c70df5b3aea27f8d8dc2698b98b0147f366cc1e (patch)
treeb357968de890d719d0a1235636d9ae7f8a589cc0 /test
parentfac4b5b8552b9c3dbf20eb96fc67b137878aaedc (diff)
downloadchrome-ec-5c70df5b3aea27f8d8dc2698b98b0147f366cc1e.tar.gz
aes-gcm: set tag size to 16 bytes in perf test
Use a 16-byte tag instead of 12 bytes. BRANCH=nocturne BUG=b:111160949 TEST=make BOARD=nocturne_fp test-aes -j TEST=make run-aes Change-Id: I9d1d28ec2049590b407eb9ea64d412c29d46b20b Signed-off-by: Nicolas Norvez <norvez@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1239237 Reviewed-by: Nicolas Boichat <drinkcat@chromium.org>
Diffstat (limited to 'test')
-rw-r--r--test/aes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/aes.c b/test/aes.c
index 0c50d80643..58a4ff71ca 100644
--- a/test/aes.c
+++ b/test/aes.c
@@ -362,7 +362,7 @@ static void test_aes_gcm_speed(void)
0x00, 0x00, 0x00, 0x00,
};
const int nonce_size = sizeof(nonce);
- uint8_t tag[12] = {0};
+ uint8_t tag[16] = {0};
const int tag_size = sizeof(tag);
uint8_t *out = tmp;