aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorOvidiu Panait <[email protected]>2021-01-15 22:46:05 +0200
committerHerbert Xu <[email protected]>2021-01-22 14:58:04 +1100
commit29dfe4d94f5c99d164c307b8320e45cb85fb4b21 (patch)
tree06b0b0b7ac233c4ce04d5648aba6b458a220e5b5 /tools/perf/scripts/python
parentac88c322d0f2917d41d13553c69e9d7f043c8b6f (diff)
crypto: keembay - use 64-bit arithmetic for computing bit_len
src_size and aad_size are defined as u32, so the following expressions are currently being evaluated using 32-bit arithmetic: bit_len = src_size * 8; ... bit_len = aad_size * 8; However, bit_len is used afterwards in a context that expects a valid 64-bit value (the lower and upper 32-bit words of bit_len are extracted and written to hw). In order to make sure the correct bit length is generated and the 32-bit multiplication does not wrap around, cast src_size and aad_size to u64. Signed-off-by: Ovidiu Panait <[email protected]> Acked-by: Daniele Alessandrelli <[email protected]> Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions