crypto: marvell/cesa - add flag to determine algorithm endianness

Rather than determining whether we're using a MD5 hash by looking at
the digest size, switch to a cleaner solution using a per-request flag
initialised by the method type.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
Russell King
2015-10-18 17:23:40 +01:00
committato da Herbert Xu
parent 4c2b130c8a
commit a9eb678f8a
2 ha cambiato i file con 10 aggiunte e 8 eliminazioni

Vedi File

@@ -612,6 +612,7 @@ struct mv_cesa_ahash_req {
u64 len;
int src_nents;
bool last_req;
bool algo_le;
u32 state[8];
};