staging: ccree: move FIPS support to kernel infrastructure
authorGilad Ben-Yossef <gilad@benyossef.com>
Tue, 11 Jul 2017 15:11:37 +0000 (18:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jul 2017 06:40:57 +0000 (08:40 +0200)
commitb7e607bf33a2f18507c7f35f7c7abfd45f55047f
tree385c2595a8d817d2956965b4159b79f9034e869e
parent07642a075f2743a0ebebde1163da6a2f0aa98d14
staging: ccree: move FIPS support to kernel infrastructure

The ccree driver had its own FIPS support, complete with
a test harness comparable to crypto testmgr and an
implementation which disables crypto functionality on
FIPS test error detection, either in Linux or from TEE.

This patch removes the duplication, while reimplementing
the handling of TEE reported FIPS errors according to the
kernel policy of inducing a panic in such an event.

Signed-off-by: Gilad Ben-Yossef <gilad@benyossef.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15 files changed:
drivers/staging/ccree/Kconfig
drivers/staging/ccree/Makefile
drivers/staging/ccree/ssi_aead.c
drivers/staging/ccree/ssi_cipher.c
drivers/staging/ccree/ssi_driver.c
drivers/staging/ccree/ssi_driver.h
drivers/staging/ccree/ssi_fips.c
drivers/staging/ccree/ssi_fips.h
drivers/staging/ccree/ssi_fips_data.h [deleted file]
drivers/staging/ccree/ssi_fips_ext.c [deleted file]
drivers/staging/ccree/ssi_fips_ll.c [deleted file]
drivers/staging/ccree/ssi_fips_local.c [deleted file]
drivers/staging/ccree/ssi_fips_local.h [deleted file]
drivers/staging/ccree/ssi_hash.c
drivers/staging/ccree/ssi_request_mgr.c