Skip to content

Commit

Permalink
crypto: tcrypt - Added speed test in tcrypt for crc32c
Browse files Browse the repository at this point in the history
This patch adds a test case in tcrypt to perform speed test for
crc32c checksum calculation.

Signed-off-by: Tim Chen <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
  • Loading branch information
pdxChen authored and herbertx committed Oct 15, 2012
1 parent 6a8ce1e commit e3899e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crypto/tcrypt.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,10 @@ static int do_test(int m)
test_hash_speed("ghash-generic", sec, hash_speed_template_16);
if (mode > 300 && mode < 400) break;

case 319:
test_hash_speed("crc32c", sec, generic_hash_speed_template);
if (mode > 300 && mode < 400) break;

case 399:
break;

Expand Down

0 comments on commit e3899e4

Please sign in to comment.