intel / intel/QAT_Engine

Test AES-128-CBC-HMAC-SHA256 fails when length is 1024 with qatprovider

Open
#265 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
C
Stars
443
Forks
137
PR merge metrics
No merged PRs in 30d

Description

It passed by default len 2048, but it failed when I modified the length to 1024.
Below is the modify code:
1115 static int run_aes_cbc_hmac_sha(void *pointer)
1116 {
1117 int ntls = sizeof(test_tls) / sizeof(tls_v);
1118 int i, cnt;
1119 int ret = 1;
1120 test_info ti;
1121 char msg[128];
1122 TEST_PARAMS *args = (TEST_PARAMS *) pointer;
1123 **ti.bufsz = 1024;//args->size; // modify**

I set ti.bufsz = 1024, then make teset and run, result is failed
make test
./testapp aes128_cbc_hmac_sha256 -provider qatprovider -p -v

[WARN][74662.403212] PID [204267] Thread [7facc89b0740][test/tests_aes_cbc_hmac_sha.c:737:test_encrypted_buffer()] # FAIL Failed to perform encrypt and compare operation for TLS1.0:AES-128-CBC-HMAC-SHA256
# FAIL verify failed AES-128-CBC-HMAC-SHA256

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.