linux_dsm_epyc7002/drivers/crypto/caam
Horia Geantă df80bfd343 crypto: caam/jr - update gcm detection logic
GCM detection logic has to change for two reasons:
-some CAAM instantiations with Era < 10, even though they have AES LP,
they now support GCM mode
-Era 10 upwards, there is a dedicated bit in AESA_VERSION[AESA_MISC]
field for GCM support

For Era 9 and earlier, all AES accelerator versions support GCM,
except for AES LP (CHAVID_LS[AESVID]=3) with revision CRNR[AESRN] < 8.

For Era 10 and later, bit 9 of the AESA_VERSION register should be used
to detect GCM support in AES accelerator.

Note: caam/qi and caam/qi2 are drivers for QI (Queue Interface), which
is used in DPAA-based SoCs; for now, we rely on CAAM having an AES HP
and this AES accelerator having support for GCM.

Signed-off-by: Horia Geantă <horia.geanta@nxp.com>
Reviewed-by: Iuliana Prodan <iuliana.prodan@nxp.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
2019-04-25 15:38:12 +08:00
..
caamalg_desc.c crypto: caam - add ecb(*) support 2019-02-15 13:21:55 +08:00
caamalg_desc.h crypto: caam/qi2 - add support for Chacha20 + Poly1305 2018-11-16 14:11:03 +08:00
caamalg_qi2.c crypto: caam - Forbid 2-key 3DES in FIPS mode 2019-04-18 22:14:59 +08:00
caamalg_qi2.h crypto: caam/qi2 - use affine DPIOs 2019-02-22 12:47:26 +08:00
caamalg_qi.c crypto: caam - Forbid 2-key 3DES in FIPS mode 2019-04-18 22:14:59 +08:00
caamalg.c crypto: caam/jr - update gcm detection logic 2019-04-25 15:38:12 +08:00
caamhash_desc.c crypto: caam - add support for cmac(aes) 2019-02-01 14:42:03 +08:00
caamhash_desc.h crypto: caam - add support for cmac(aes) 2019-02-01 14:42:03 +08:00
caamhash.c crypto: caam - add missing put_device() call 2019-03-07 16:24:52 +08:00
caampkc.c crypto: rsa - unimplement sign/verify for raw RSA backends 2019-04-18 22:15:02 +08:00
caampkc.h crypto: caam - strip input zeros from RSA input buffer 2018-04-21 00:59:03 +08:00
caamrng.c crypto: caam - add missing put_device() call 2019-03-07 16:24:52 +08:00
compat.h crypto: caam - add ecb(*) support 2019-02-15 13:21:55 +08:00
ctrl.c crypto: caam - limit AXI pipeline to a depth of 1 2019-03-28 13:55:34 +08:00
ctrl.h crypto: caam - staticize caam_get_era() 2018-04-21 00:58:36 +08:00
desc_constr.h crypto: caam/jr - add support for Chacha20 + Poly1305 2018-11-16 14:11:03 +08:00
desc.h crypto: caam - fix SHA support detection 2019-01-10 21:37:31 +08:00
dpseci_cmd.h crypto: caam - add DPAA2-CAAM (DPSECI) backend API 2018-09-21 13:24:51 +08:00
dpseci.c crypto: caam - add DPAA2-CAAM (DPSECI) backend API 2018-09-21 13:24:51 +08:00
dpseci.h crypto: caam - add DPAA2-CAAM (DPSECI) backend API 2018-09-21 13:24:51 +08:00
error.c crypto: caam - fix spelling mistake "cannote" -> "cannot" 2019-04-25 15:38:12 +08:00
error.h crypto: caam - fix SHA support detection 2019-01-10 21:37:31 +08:00
intern.h crypto: caam/jr - Removed redundant vars from job ring private data 2019-03-28 13:55:34 +08:00
jr.c crypto: caam/jr - Remove extra memory barrier during job ring dequeue 2019-04-18 22:14:58 +08:00
jr.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
Kconfig crypto: caam - add ecb(*) support 2019-02-15 13:21:55 +08:00
key_gen.c crypto: caam - generate hash keys in-place 2019-02-28 14:17:58 +08:00
key_gen.h crypto: caam - add Derived Key Protocol (DKP) support 2017-12-28 17:56:48 +11:00
Makefile crypto: caam - export ahash shared descriptor generation 2018-09-21 13:24:51 +08:00
pdb.h License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
pkc_desc.c License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
qi.c crypto: caam/qi - Change a couple IS_ERR_OR_NULL() checks to IS_ERR() 2019-04-08 14:36:16 +08:00
qi.h crypto: caam/qi - simplify CGR allocation, freeing 2018-10-17 14:14:46 +08:00
regs.h crypto: caam/jr - update gcm detection logic 2019-04-25 15:38:12 +08:00
sg_sw_qm2.h crypto: caam - add SPDX license identifier to all files 2018-10-17 14:16:18 +08:00
sg_sw_qm.h crypto: caam - add SPDX license identifier to all files 2018-10-17 14:16:18 +08:00
sg_sw_sec4.h staging: fsl-mc: Move DPIO from staging to drivers/soc/fsl 2018-07-24 16:18:55 -05:00