app/crypto-perf: set AAD after the crypto operation
[dpdk.git] / app / test-crypto-perf / cperf_test_verify.c
index b8814b6..ca9947c 100644 (file)
@@ -197,9 +197,9 @@ cperf_verify_op(struct rte_crypto_op *op,
                break;
        case CPERF_AEAD:
                cipher = 1;
-               cipher_offset = vector->aad.length;
+               cipher_offset = 0;
                auth = 1;
-               auth_offset = vector->aad.length + options->test_buffer_size;
+               auth_offset = options->test_buffer_size;
                break;
        default:
                res = 1;