crypto: crypto4xx - move and refactor dynamic_contents helpers
authorChristian Lamparter <chunkeey@googlemail.com>
Fri, 25 Aug 2017 13:47:20 +0000 (15:47 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 22 Sep 2017 09:43:18 +0000 (17:43 +0800)
commit249c8d98ea339325dca481d5dae93686cd494059
tree5dd6fbee8aa4676b2113e1b76927b10f5d3cfc34
parent453e3090b9c3f5da70b21648c2244e9821f0916d
crypto: crypto4xx - move and refactor dynamic_contents helpers

This patch refactors and moves the dynamic_contents helper
functions into the crypto4xx_sa.h header file.

 * get_dynamic_sa_iv_size is no longer needed, as the cryptoapi
   provides the required IV size information as well.

 * refactor the function declarations to use the a pointer to the
   dynamic_sa_contents union, instead of the crypto4xx_ctx.

 * rename get_dynamic_sa_offset_key_field to get_dynamic_sa_key_field.
   It returns the pointer to the key directly.

Signed-off-by: Christian Lamparter <chunkeey@googlemail.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/amcc/Makefile
drivers/crypto/amcc/crypto4xx_alg.c
drivers/crypto/amcc/crypto4xx_core.h
drivers/crypto/amcc/crypto4xx_sa.c [deleted file]
drivers/crypto/amcc/crypto4xx_sa.h