diff options
author | Russell King <rmk+kernel@arm.linux.org.uk> | 2015-10-18 17:24:47 +0100 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2015-10-20 22:11:08 +0800 |
commit | ab270e7055e0aa9d4dc3bf419cdfdde340174978 (patch) | |
tree | 29103e1ead15edaf40f78d1790c5c6f62454d8bf /Documentation | |
parent | aee84a7e6ed515f0f217317ff261a15db4bff0bb (diff) |
crypto: marvell/cesa - rearrange handling for sw padded hashes
Rearrange the last request handling for hashes which require software
padding.
We prepare the padding to be appended, and then append as much of the
padding to any existing data that's already queued up, adding an
operation block and launching the operation.
Any remainder is then appended as a separate operation.
This ensures that the hardware only ever sees multiples of the hash
block size to be operated on for software padded hashes, thus ensuring
that the engine always indicates that it has finished the calculation.
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions