]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
crypto: tcrypt - add skcipher speed for given alg
authorSergey Portnoy <sergey.portnoy@intel.com>
Mon, 17 Jun 2024 16:08:29 +0000 (17:08 +0100)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 28 Jun 2024 01:35:46 +0000 (11:35 +1000)
commit7b3058eb3f3b04e534d6cda6820ef8c7cf519a79
tree731b6acb52c5e8159a32430cfc4f236ab5beb82e
parentff33c2e6af99afcac3024a5c3ec8730d1e6b8ac7
crypto: tcrypt - add skcipher speed for given alg

Allow to run skcipher speed for given algorithm.
Case 600 is modified to cover ENCRYPT and DECRYPT
directions.

Example:
   modprobe tcrypt mode=600 alg="qat_aes_xts" klen=32

If succeed, the performance numbers will be printed in dmesg:
   testing speed of multibuffer qat_aes_xts (qat_aes_xts) encryption
   test 0 (256 bit key, 16 byte blocks): 1 operation in 14596 cycles (16 bytes)
   ...
   test 6 (256 bit key, 4096 byte blocks): 1 operation in 8053 cycles (4096 bytes)

Signed-off-by: Sergey Portnoy <sergey.portnoy@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/tcrypt.c