crypto: caam - fix rfc3686(ctr(aes)) IV load
authorCatalin Vasile <cata.vasile@nxp.com>
Wed, 31 Aug 2016 12:57:55 +0000 (15:57 +0300)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 7 Sep 2016 13:08:28 +0000 (21:08 +0800)
commit5ba1c7b5ffc16ecf245f41805e46f7351c115e57
tree69daadd2272b89761435c2ca559dafc34d949bc8
parent4cba7cf025f35599f8de3282c8a7278ecc43eea4
crypto: caam - fix rfc3686(ctr(aes)) IV load

-nonce is being loaded using append_load_imm_u32() instead of
append_load_as_imm() (nonce is a byte array / stream, not a 4-byte
variable)
-counter is not being added in big endian format, as mandatated by
RFC3686 and expected by the crypto engine

Signed-off-by: Catalin Vasile <cata.vasile@nxp.com>
Reviewed-by: Horia Geantă <horia.geanta@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/caam/caamalg.c
drivers/crypto/caam/desc_constr.h