Skip to content

Commit

Permalink
test/crypto: fix bitwise operator in a SNOW3G case
Browse files Browse the repository at this point in the history
[ upstream commit e23eccf ]

This patch remove incorrect bitwise and operator used in the
return function of sw snow3g testcase

Fixes: 24342ad ("test/crypto: check SNOW3G when digest is encrypted")

Signed-off-by: Kai Ji <kai.ji@intel.com>
Acked-by: Ciara Power <ciara.power@intel.com>
  • Loading branch information
KaiJiIntel authored and kevintraynor committed Nov 23, 2022
1 parent 5ffd9e4 commit 4726dff
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions app/test/test_cryptodev.c
Expand Up @@ -6892,8 +6892,10 @@ test_snow3g_decryption_with_digest_test_case_1(void)
*/
snow3g_hash_test_vector_setup(&snow3g_test_case_7, &snow3g_hash_data);

return test_snow3g_decryption(&snow3g_test_case_7) &
test_snow3g_authentication_verify(&snow3g_hash_data);
if (test_snow3g_decryption(&snow3g_test_case_7))
return TEST_FAILED;

return test_snow3g_authentication_verify(&snow3g_hash_data);
}

static int
Expand Down

0 comments on commit 4726dff

Please sign in to comment.