Skip to content

Commit

Permalink
crypto: testmgr - Remove hash size check
Browse files Browse the repository at this point in the history
Until hash test vectors grow longer than 256 bytes, the only
purpose of the check is to generate a gcc warning.

Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
herbertx committed Jun 24, 2009
1 parent c994488 commit 259c5e0
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions crypto/testmgr.c
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ static int test_hash(struct crypto_ahash *tfm, struct hash_testvec *template,

hash_buff = xbuf[0];

ret = -EINVAL;
if (WARN_ON(template[i].psize > PAGE_SIZE))
goto out;

memcpy(hash_buff, template[i].plaintext, template[i].psize);
sg_init_one(&sg[0], hash_buff, template[i].psize);

Expand Down

0 comments on commit 259c5e0

Please sign in to comment.