]> git.droids-corp.org - dpdk.git/blobdiff - app/test-crypto-perf/main.c
app/test-crypto-perf: add checks for AEAD key
[dpdk.git] / app / test-crypto-perf / main.c
index 5c7dadb60512b167fb92446ef18102f69e531a92..c9f99a76d859a5f31ffcc37fd2a875df89d625f1 100644 (file)
@@ -421,6 +421,10 @@ cperf_check_test_vector(struct cperf_options *opts,
                        return -1;
                if (test_vec->ciphertext.length < opts->max_buffer_size)
                        return -1;
+               if (test_vec->aead_key.data == NULL)
+                       return -1;
+               if (test_vec->aead_key.length != opts->aead_key_sz)
+                       return -1;
                if (test_vec->aead_iv.data == NULL)
                        return -1;
                if (test_vec->aead_iv.length != opts->aead_iv_sz)