summaryrefslogtreecommitdiffstats
path: root/include/crypto
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
commit47309ea1359115125d9cab17a279c8df72b47235 (patch)
tree08c92a0855dd0b24b6129286c15c149fffeff7eb /include/crypto
parent662ea18d089ba6fa02859fbd64f2aa78d88c6648 (diff)
downloadlinux-47309ea1359115125d9cab17a279c8df72b47235.tar.gz
linux-47309ea1359115125d9cab17a279c8df72b47235.tar.bz2
linux-47309ea1359115125d9cab17a279c8df72b47235.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 'include/crypto')
0 files changed, 0 insertions, 0 deletions