crypto: ctr - add helper for performing a CTR encryption walk
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 2 Jul 2019 19:41:34 +0000 (21:41 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 26 Jul 2019 04:56:07 +0000 (14:56 +1000)
commitd9ec772d9550b6e513c51bc4e6fa1e3ffb50181c
tree3d9aaca48f445128982d7acfe13916ddf00c22c9
parent5bb12d7825adf0e80b849a273834f3131a6cc4e1
crypto: ctr - add helper for performing a CTR encryption walk

Add a static inline helper modeled after crypto_cbc_encrypt_walk()
that can be reused for SIMD algorithms that need to implement a
non-SIMD fallback for performing CTR encryption.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
include/crypto/ctr.h