diff options
author | Ard Biesheuvel <ardb@kernel.org> | 2020-11-20 12:04:33 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2020-11-27 07:13:45 +0100 |
commit | ad6d66bcac77e5145eb67449f8354ed0f936258c (patch) | |
tree | a98963e5bb97a4b941f252d2e49f9820975026dd /drivers/crypto/ccree | |
parent | crypto: tcrypt - permit tcrypt.ko to be builtin (diff) | |
download | linux-ad6d66bcac77e5145eb67449f8354ed0f936258c.tar.xz linux-ad6d66bcac77e5145eb67449f8354ed0f936258c.zip |
crypto: tcrypt - include 1420 byte blocks in aead and skcipher benchmarks
WireGuard and IPsec both typically operate on input blocks that are
~1420 bytes in size, given the default Ethernet MTU of 1500 bytes and
the overhead of the VPN metadata.
Many aead and sckipher implementations are optimized for power-of-2
block sizes, and whether they perform well when operating on 1420
byte blocks cannot be easily extrapolated from the performance on
power-of-2 block size. So let's add 1420 bytes explicitly, and round
it up to the next blocksize multiple of the algo in question if it
does not support 1420 byte blocks.
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/ccree')
0 files changed, 0 insertions, 0 deletions