cvs commit: src/tools/tools/crypto Makefile cryptotest.c

Norikatsu Shigemura nork at FreeBSD.org
Tue Sep 7 12:02:02 PDT 2004


On Tue, 7 Sep 2004 18:35:00 +0000 (UTC)
Sam Leffler <sam at freebsd.org> wrote:
> sam         2004-09-07 18:35:00 UTC
>   FreeBSD src repository
>   Modified files:
>     tools/tools/crypto   Makefile 
>   Added files:
>     tools/tools/crypto   cryptotest.c 
>   Log:
>   new version of cryptotest (w/ only code from me)
>   Reviewed by:    imp

	That's cool!!

In my environment(vpn1401 - Hifn7955)
$ ./cryptotest -z 1000
 0.118 sec,    2000    des crypts,       8 bytes,   135357 byte/sec,     1.0 Mb/sec
 0.119 sec,    2000    des crypts,      16 bytes,   268912 byte/sec,     2.1 Mb/sec
 (snip)
 0.132 sec,    2000    aes crypts,     256 bytes,  3867625 byte/sec,    29.5 Mb/sec
 0.150 sec,    2000    aes crypts,     512 bytes,  6839936 byte/sec,    52.2 Mb/sec
 0.183 sec,    2000    aes crypts,    1024 bytes, 11201601 byte/sec,    85.5 Mb/sec
 0.244 sec,    2000    aes crypts,    2048 bytes, 16809068 byte/sec,   128.2 Mb/sec
 0.381 sec,    2000    aes crypts,    4096 bytes, 21529453 byte/sec,   164.3 Mb/sec
 0.706 sec,    2000    aes crypts,    8192 bytes, 23215085 byte/sec,   177.1 Mb/sec
 (snip)

>   Revision  Changes    Path
>   1.8       +1 -1      src/tools/tools/crypto/Makefile
>   1.6       +582 -0    src/tools/tools/crypto/cryptotest.c (new)

	BTW, in 62 lines:

 *      sha512  512--bit sha2 hmac
                   ~~ Is ok?

	in 81 lines. What do you confirm these algorithm?
 * Expect ~400 Mb/s for a Broadcom 582x for 8K buffers on a reasonable CPU
 * (64-bit PCI helps).  Hifn 7811 parts top out at ~110 Mb/s.

	I'm interested in.


More information about the cvs-all mailing list