linux/drivers/crypto/ccree
Iuliana Prodan b93ecf4296 crypto: ccree - check assoclen for rfc4543
Check assoclen to solve the extra tests that expect -EINVAL to be
returned when the associated data size is not valid.

Validated assoclen for RFC4543 which expects an assoclen
of 16 or 20, the same as RFC4106.
Based on seqiv, IPsec ESP and RFC4543/RFC4106 the assoclen is sizeof
IP Header (spi, seq_no, extended seq_no) and IV len. This can be 16 or
20 bytes.

Signed-off-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-07-27 21:08:36 +10:00
..
cc_aead.c crypto: ccree - check assoclen for rfc4543 2019-07-27 21:08:36 +10:00
cc_aead.h crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00
cc_buffer_mgr.c crypto: ccree - don't map AEAD key and IV on stack 2019-04-25 15:38:16 +08:00
cc_buffer_mgr.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_cipher.c crypto: ccree - remove set but not used variable 'du_size' 2019-05-03 14:03:30 +08: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 - fix typo in debugfs error path 2019-04-25 15:38:14 +08:00
cc_debugfs.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_driver.c crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00
cc_driver.h crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00
cc_fips.c crypto: ccree - notify TEE on FIPS tests errors 2019-07-26 14:51:57 +10: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 - don't map MAC key on stack 2019-04-25 15:38:15 +08:00
cc_hash.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +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 - copyright header update 2019-04-25 15:38:14 +08: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 - drop legacy ivgen support 2019-07-26 14:51:55 +10:00
cc_pm.h crypto: ccree - prevent isr handling in case driver is suspended 2019-06-27 14:28:00 +08:00
cc_request_mgr.c crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00
cc_request_mgr.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_sram_mgr.c crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
cc_sram_mgr.h crypto: ccree - copyright header update 2019-04-25 15:38:14 +08:00
Makefile crypto: ccree - drop legacy ivgen support 2019-07-26 14:51:55 +10:00