linux-hardened/drivers/crypto/sunxi-ss
Antoine Ténart 214a9bd0f8 crypto: sun4i-ss - simplify the pad length calculation
When sending the last block of data to the engine, it should be padded
so that the total length of the request can be given to the engine as
the last 2 words of the last 64 bytes block.

Simplify the calculation of this pad offset.

Signed-off-by: Antoine Tenart <antoine.tenart@free-electrons.com>
Tested-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Acked-by: Corentin Labbe <clabbe.montjoie@gmail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2017-06-19 14:19:50 +08:00
..
Makefile
sun4i-ss-cipher.c crypto: sun4i-ss - remove conditional checks against 0 2017-06-19 14:19:49 +08:00
sun4i-ss-core.c crypto: sun4i-ss - remove conditional checks against 0 2017-06-19 14:19:49 +08:00
sun4i-ss-hash.c crypto: sun4i-ss - simplify the pad length calculation 2017-06-19 14:19:50 +08:00
sun4i-ss.h crypto: sun4i-ss - Always use sun4i_tfm_ctx for storing pointer to dev ss 2016-08-16 17:17:00 +08:00