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)
commit78cf1c8bfcb81a21347dfa57ce71d475cea9f595
tree0145d63947e14df916292f019e12bbf607f83714
parent18e5189535910450f6cf7a63f8f0b84153b91f66
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