aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2014-02-01 03:01:59 +0100
committerBruce Ashfield <bruce.ashfield@windriver.com>2016-08-30 12:11:57 -0400
commit0f84a7612f550e9141f2dc293ca7627330c8b87e (patch)
treebde46a3e9fec4cb4293435f65031e0ddbe4f3eb6
parent1a9db0613872e35376952d5a2422aabb7e9fdf74 (diff)
downloadlinux-yocto-0f84a7612f550e9141f2dc293ca7627330c8b87e.tar.gz
linux-yocto-0f84a7612f550e9141f2dc293ca7627330c8b87e.tar.bz2
linux-yocto-0f84a7612f550e9141f2dc293ca7627330c8b87e.zip
cryptodev: tests/hmac_comp:
This makes the test complain if the output fields were not altered at all. Signed-off-by: Phil Sutter <phil@nwl.cc>
-rw-r--r--drivers/staging/crypto/cryptodev/tests/hmac_comp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/crypto/cryptodev/tests/hmac_comp.c b/drivers/staging/crypto/cryptodev/tests/hmac_comp.c
index f76f5cefa7a4..a8709cbbc3fb 100644
--- a/drivers/staging/crypto/cryptodev/tests/hmac_comp.c
+++ b/drivers/staging/crypto/cryptodev/tests/hmac_comp.c
@@ -50,12 +50,12 @@ test_crypto(int cfd, struct session_op *sess, int datalen)
encrypted_comp = malloc(datalen);
memset(data, datalen & 0xff, datalen);
memset(encrypted, 0x27, datalen);
- memset(encrypted_comp, 0x27, datalen);
+ memset(encrypted_comp, 0x28, datalen);
memset(iv, 0x23, sizeof(iv));
memset(iv_comp, 0x23, sizeof(iv));
memset(mac, 0, sizeof(mac));
- memset(mac_comp, 0, sizeof(mac_comp));
+ memset(mac_comp, 1, sizeof(mac_comp));
memset(&cryp, 0, sizeof(cryp));