diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2018-03-10 18:21:53 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2018-03-16 18:35:58 +0300 |
commit | 870c163a0ee6486bf0a313d47da927400bcb131b (patch) | |
tree | 8423800221c25859319da4a5fbbbca845845674a /arch/arm64/crypto/sha256-glue.c | |
parent | a8f8a69e82b6ecfbaa869987955b1dbd5ae7f612 (diff) | |
download | linux-870c163a0ee6486bf0a313d47da927400bcb131b.tar.xz |
crypto: arm64/aes-blk - add 4 way interleave to CBC-MAC encrypt path
CBC MAC is strictly sequential, and so the current AES code simply
processes the input one block at a time. However, we are about to add
yield support, which adds a bit of overhead, and which we prefer to
align with other modes in terms of granularity (i.e., it is better to
have all routines yield every 64 bytes and not have an exception for
CBC MAC which yields every 16 bytes)
So unroll the loop by 4. We still cannot perform the AES algorithm in
parallel, but we can at least merge the loads and stores.
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'arch/arm64/crypto/sha256-glue.c')
0 files changed, 0 insertions, 0 deletions