]> git.droids-corp.org - dpdk.git/commitdiff
app/test: fix missing operation initialization
authorDeepak Kumar Jain <deepak.k.jain@intel.com>
Sun, 10 Jul 2016 10:20:57 +0000 (11:20 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 10 Jul 2016 12:55:42 +0000 (14:55 +0200)
Initializing the authentication op parameter.

Fixes: eec136f3c54f ("aesni_gcm: add driver for AES-GCM crypto operations")
Signed-off-by: Deepak Kumar Jain <deepak.k.jain@intel.com>
app/test/test_cryptodev.c

index 1e1f887001042cb96851c923d9583cf7ac6c472e..dac3b936f88cff76bdd8291a8893a1099fb3e338 100644 (file)
@@ -3002,6 +3002,7 @@ create_gcm_session(uint8_t dev_id, enum rte_crypto_cipher_operation op,
        ut_params->cipher_xform.next = NULL;
 
        ut_params->cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_GCM;
+       ut_params->auth_xform.auth.op = RTE_CRYPTO_AUTH_OP_GENERATE;
        ut_params->cipher_xform.cipher.op = op;
        ut_params->cipher_xform.cipher.key.data = cipher_key;
        ut_params->cipher_xform.cipher.key.length = key_len;