]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: inside-secure - Move ipad/opad into safexcel_context
authorHerbert Xu <herbert@gondor.apana.org.au>
Mon, 14 Sep 2020 04:22:14 +0000 (14:22 +1000)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 25 Sep 2020 07:48:13 +0000 (17:48 +1000)
commitc539eb7eb94ca575c4d04c26e4c0d5a6e19db854
tree0145d63947e14df916292f019e12bbf607f83714
parente13519d5422c1638d56da55192ea50c7eb99c45b
crypto: inside-secure - Move ipad/opad into safexcel_context

As both safexcel_ahash_ctx and safexcel_cipher_ctx contain ipad
and opad buffers this patch moves them into the common struct
safexcel_context.  It also adds a union so that they can be accessed
in the appropriate endian without crazy casts.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/inside-secure/safexcel.h
drivers/crypto/inside-secure/safexcel_cipher.c
drivers/crypto/inside-secure/safexcel_hash.c