aboutsummaryrefslogtreecommitdiffstats
path: root/.cocciconfig
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@google.com>2018-01-05 11:09:57 -0800
committerHerbert Xu <herbert@gondor.apana.org.au>2018-01-12 23:03:41 +1100
commitb62b3db76f73c5a8cc132f78e7174bf57d582182 (patch)
tree3884b118e59d0d5793a14ba891af62c130163409 /.cocciconfig
parentcrypto: aes-generic - build with -Os on gcc-7+ (diff)
downloadlinux-dev-b62b3db76f73c5a8cc132f78e7174bf57d582182.tar.xz
linux-dev-b62b3db76f73c5a8cc132f78e7174bf57d582182.zip
crypto: salsa20-generic - cleanup and convert to skcipher API
Convert salsa20-generic from the deprecated "blkcipher" API to the "skcipher" API, in the process fixing it up to be thread-safe (as the crypto API expects) by maintaining each request's state separately from the transform context. Also remove the unnecessary cra_alignmask and tighten validation of the key size by accepting only 16 or 32 bytes, not anything in between. These changes bring the code close to the way chacha20-generic does things, so hopefully it will be easier to maintain in the future. However, the way Salsa20 interprets the IV is still slightly different; that was not changed. Signed-off-by: Eric Biggers <ebiggers@google.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to '.cocciconfig')
0 files changed, 0 insertions, 0 deletions