]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda69492e8c326312c8b9d0bac4fbf7a9a303b57f
tree3d9aaca48f445128982d7acfe13916ddf00c22c9
parent6b1eb38d09a950a1268b5860ada326311fb01750
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