linux/drivers/crypto/allwinner/sun4i-ss
Eric Biggers 977755579d crypto: sun4i-ss - remove unnecessary alignmask for ahashes
The crypto API's support for alignmasks for ahash algorithms is nearly
useless, as its only effect is to cause the API to align the key and
result buffers.  The drivers that happen to be specifying an alignmask
for ahash rarely actually need it.  When they do, it's easily fixable,
especially considering that these buffers cannot be used for DMA.

In preparation for removing alignmask support from ahash, this patch
makes the sun4i-ss driver no longer use it.  This driver didn't actually
rely on it; it only writes to the result buffer in sun4i_hash(), already
using the unaligned access helpers.  And this driver only supports
unkeyed hash algorithms, so the key buffer need not be considered.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2023-10-27 18:04:28 +08:00
..
Makefile
sun4i-ss-cipher.c crypto: update some Arm documentation references 2023-06-13 03:47:38 -06:00
sun4i-ss-core.c crypto: sun4i-ss - remove unnecessary alignmask for ahashes 2023-10-27 18:04:28 +08:00
sun4i-ss-hash.c crypto: update some Arm documentation references 2023-06-13 03:47:38 -06:00
sun4i-ss-prng.c crypto: sun4i-ss - Fix PM reference leak when pm_runtime_get_sync() fails 2021-04-16 21:16:32 +10:00
sun4i-ss.h crypto: update some Arm documentation references 2023-06-13 03:47:38 -06:00