linux/drivers/crypto/allwinner
Eric Biggers 028a14470e crypto: sun8i-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 sun8i-ss driver no longer use it.  This driver didn't actually
rely on it; it only writes to the result buffer in sun8i_ss_hash_run(),
simply using memcpy().  And sun8i_ss_hmac_setkey() does not assume any
alignment for the key buffer.

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
..
sun4i-ss crypto: sun4i-ss - remove unnecessary alignmask for ahashes 2023-10-27 18:04:28 +08:00
sun8i-ce crypto: sun8i-ce - remove unnecessary alignmask for ahashes 2023-10-27 18:04:28 +08:00
sun8i-ss crypto: sun8i-ss - remove unnecessary alignmask for ahashes 2023-10-27 18:04:28 +08:00
Kconfig crypto: allwinner - add missing CRYPTO_ prefix 2021-04-09 17:41:05 +10:00
Makefile crypto: allwinner - Add sun8i-ss cryptographic offloader 2019-11-01 13:38:31 +08:00