Skip to content

Commit

Permalink
crypto: omap-aes - avoid spamming console with self tests
Browse files Browse the repository at this point in the history
Running the self test suite for omap-aes with extra tests enabled causes
huge spam with the tag message wrong indicators. With self tests, this
is fine as there are some tests that purposedly pass bad data to the
driver. Also, returning -EBADMSG from the driver is enough, so remove the
dev_err message completely.

Signed-off-by: Tero Kristo <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
Tero Kristo authored and herbertx committed Jun 4, 2020
1 parent 58ca006 commit b29cb8d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/crypto/omap-aes-gcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ static void omap_aes_gcm_done_task(struct omap_aes_dev *dd)
tag = (u8 *)rctx->auth_tag;
for (i = 0; i < dd->authsize; i++) {
if (tag[i]) {
dev_err(dd->dev, "GCM decryption: Tag Message is wrong\n");
ret = -EBADMSG;
}
}
Expand Down

0 comments on commit b29cb8d

Please sign in to comment.