diff options
| author | Ovidiu Panait <[email protected]> | 2023-12-01 19:06:19 +0200 |
|---|---|---|
| committer | Herbert Xu <[email protected]> | 2023-12-08 11:59:45 +0800 |
| commit | 8fd183435728b139248a77978ea3732039341779 (patch) | |
| tree | 0d0e75e5db3ed628e7e674abaf31ad7c4f4dda98 /tools/perf/scripts/python | |
| parent | 87e02063d07708cac5bfe9fd3a6a242898758ac8 (diff) | |
crypto: sahara - remove FLAGS_NEW_KEY logic
Remove the FLAGS_NEW_KEY logic as it has the following issues:
- the wrong key may end up being used when there are multiple data streams:
t1 t2
setkey()
encrypt()
setkey()
encrypt()
encrypt() <--- key from t2 is used
- switching between encryption and decryption with the same key is not
possible, as the hdr flags are only updated when a new setkey() is
performed
With this change, the key is always sent along with the cryptdata when
performing encryption/decryption operations.
Fixes: 5de8875281e1 ("crypto: sahara - Add driver for SAHARA2 accelerator.")
Signed-off-by: Ovidiu Panait <[email protected]>
Signed-off-by: Herbert Xu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions