diff options
author | Herbert Xu | 2023-11-28 14:52:57 +0800 |
---|---|---|
committer | Herbert Xu | 2023-12-08 11:59:46 +0800 |
commit | 47309ea1359115125d9cab17a279c8df72b47235 (patch) | |
tree | 08c92a0855dd0b24b6129286c15c149fffeff7eb /crypto/cts.c | |
parent | 662ea18d089ba6fa02859fbd64f2aa78d88c6648 (diff) |
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/cts.c')
0 files changed, 0 insertions, 0 deletions