diff options
author | Eric Biggers <ebiggers@google.com> | 2025-05-05 21:18:21 +0300 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2025-05-12 08:32:53 +0300 |
commit | 98066f2f8901ccf72f3c5d6c391c8fff1cabd49d (patch) | |
tree | a88e8b02bcfc5fbc4a1b71213ba078d98c07fba1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 97855e7f1ccf4917f305baab199edb9f2595ff5b (diff) | |
download | linux-98066f2f8901ccf72f3c5d6c391c8fff1cabd49d.tar.xz |
crypto: lib/chacha - strongly type the ChaCha state
The ChaCha state matrix is 16 32-bit words. Currently it is represented
in the code as a raw u32 array, or even just a pointer to u32. This
weak typing is error-prone. Instead, introduce struct chacha_state:
struct chacha_state {
u32 x[16];
};
Convert all ChaCha and HChaCha functions to use struct chacha_state.
No functional changes.
Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Kent Overstreet <kent.overstreet@linux.dev>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions