summaryrefslogtreecommitdiff
path: root/crypto/algif_skcipher.c
diff options
context:
space:
mode:
authorHerbert Xu <herbert@gondor.apana.org.au>2023-11-28 14:52:57 +0800
committerHerbert Xu <herbert@gondor.apana.org.au>2023-12-08 11:59:46 +0800
commit67d9a2e93f686bd4ec5ee4d62b28ee5259059eae (patch)
tree7cc6ebc49428fe65b69479af7211c92807d8d1ef /crypto/algif_skcipher.c
parent0707e88b0fc95ffb101ea0ce0c0844b5b279bdab (diff)
downloadlinux-crypto-67d9a2e93f686bd4ec5ee4d62b28ee5259059eae.tar.gz
linux-crypto-67d9a2e93f686bd4ec5ee4d62b28ee5259059eae.zip
crypto: arc4 - Add internal state
The arc4 algorithm has always had internal state. It's been buggy from day one in that the state has been stored in the shared tfm object. That means two users sharing the same tfm will end up affecting each other's output, or worse, they may end up with the same output. Fix this by declaring an internal state and storing the state there instead of within the tfm context. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'crypto/algif_skcipher.c')
0 files changed, 0 insertions, 0 deletions