linux/drivers/crypto/ccree
Gilad Ben-Yossef 0eae14a067 crypto: ccree - refactor AEAD IV in AAD handling
Our handling of ciphers with IV trailing the AAD was correct
but overly complicated. Refactor to simplify and possibly
save one DMA burst.

This has the added bonus of behaving the same as the generic
rfc4543 implementation for none compliants inputs where the
IV in the iv field was not the same as the IV in the AAD.

There should be no change in behaviour with correct inputs.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2020-03-12 23:00:16 +11:00
..
cc_aead.c crypto: ccree - refactor AEAD IV in AAD handling 2020-03-12 23:00:16 +11:00
cc_aead.h crypto: ccree - refactor AEAD IV in AAD handling 2020-03-12 23:00:16 +11:00
cc_buffer_mgr.c crypto: ccree - refactor AEAD IV in AAD handling 2020-03-12 23:00:16 +11:00
cc_buffer_mgr.h crypto: ccree - use u32 for SRAM addresses 2020-02-22 09:25:44 +08:00
cc_cipher.c crypto: ccree - remove ancient TODO remarks 2020-03-12 23:00:16 +11:00
cc_cipher.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_crypto_ctx.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_debugfs.c crypto: ccree - remove struct cc_debugfs_ctx 2020-02-22 09:25:45 +08:00
cc_debugfs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_driver.c crypto: ccree - use existing dev helper in init_cc_resources() 2020-02-22 09:25:46 +08:00
cc_driver.h crypto: ccree - remove pointless comment 2020-03-12 23:00:16 +11:00
cc_fips.c crypto: ccree - fix typos in comments 2019-12-11 16:36:54 +08:00
cc_fips.h crypto: ccree - add function to handle cryptocell tee fips error 2019-04-25 15:38:16 +08:00
cc_hash.c crypto: ccree - remove ancient TODO remarks 2020-03-12 23:00:16 +11:00
cc_hash.h crypto: ccree - improve kerneldoc in cc_hash.[ch] 2020-02-22 09:25:45 +08:00
cc_host_regs.h crypto: ccree - add HW engine config check 2019-06-27 14:28:00 +08:00
cc_hw_queue_defs.h crypto: ccree - update register handling macros 2020-03-12 23:00:16 +11:00
cc_kernel_regs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_lli_defs.h crypto: ccree - allow more AEAD assoc data fragments 2019-04-25 15:38:15 +08:00
cc_pm.c crypto: ccree - make cc_pm_{suspend,resume}() static 2020-02-22 09:25:44 +08:00
cc_pm.h crypto: ccree - make cc_pm_{suspend,resume}() static 2020-02-22 09:25:44 +08:00
cc_request_mgr.c crypto: ccree - remove ancient TODO remarks 2020-03-12 23:00:16 +11:00
cc_request_mgr.h crypto: ccree - improve kerneldoc in cc_request_mgr.[ch] 2020-02-22 09:25:46 +08:00
cc_sram_mgr.c crypto: ccree - improve kerneldoc in cc_sram_mgr.[ch] 2020-02-22 09:25:46 +08:00
cc_sram_mgr.h crypto: ccree - improve kerneldoc in cc_sram_mgr.[ch] 2020-02-22 09:25:46 +08:00
Makefile crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00