u-boot/drivers/crypto/fsl
Breno Lima 30e39ac7c9 imx: imx7 Support for Manufacturing Protection
This code was originally developed by Raul Cardenas <raul.casas@nxp.com>
and modified to be applied in U-Boot imx_v2017.03.

More information about the initial submission can be seen
in the link below:
https://lists.denx.de/pipermail/u-boot/2016-February/245273.html

i.MX7D has an a protection feature for Manufacturing process.
This feature uses asymmetric encryption to sign and verify
authenticated software handled between parties. This command
enables the use of such feature.

The private key is unique and generated once per device.
And it is stored in secure memory and only accessible by CAAM.
Therefore, the public key generation and signature functions
are the only functions available for the user.

The manufacturing-protection authentication process can be used to
authenticate the chip to the OEM's server.

Command usage:

Print the public key for the device.
- mfgprot pubk

Generates Signature over given data.
- mfgprot sign <data_address> <data_size>

Signed-off-by: Raul Ulises Cardenas <raul.casas@nxp.com>
Signed-off-by: Breno Lima <breno.lima@nxp.com>
Reviewed-by: Fabio Estevam <fabio.estevam@nxp.com>
Reviewed-by: Ye Li <ye.li@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
2021-04-08 09:18:29 +02:00
..
desc.h imx: imx7 Support for Manufacturing Protection 2021-04-08 09:18:29 +02:00
desc_constr.h crypto/fsl: fix unaligned access 2020-07-27 14:16:28 +05:30
error.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fsl_blob.c common: Drop log.h from common header 2020-05-18 21:19:18 -04:00
fsl_hash.c crypto/fsl: unused value in caam_hash_update() 2020-07-27 14:16:28 +05:30
fsl_hash.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
fsl_mfgprot.c imx: imx7 Support for Manufacturing Protection 2021-04-08 09:18:29 +02:00
fsl_rsa.c dm: Rename U_BOOT_DEVICE() to U_BOOT_DRVINFO() 2021-01-05 12:26:35 -07:00
jobdesc.c crypto/fsl: add RNG support 2020-07-27 14:16:29 +05:30
jobdesc.h crypto/fsl: add RNG support 2020-07-27 14:16:29 +05:30
jr.c crypto/fsl: add RNG support 2020-07-27 14:16:29 +05:30
jr.h Revert "drivers/crypto/fsl: assign job-rings to non-TrustZone" 2019-06-11 10:42:48 +02:00
Kconfig crypto/fsl: add RNG support 2020-07-27 14:16:29 +05:30
Makefile imx: imx7 Support for Manufacturing Protection 2021-04-08 09:18:29 +02:00
rng.c dm: treewide: Rename auto_alloc_size members to be shorter 2020-12-13 08:00:25 -07:00
rsa_caam.h SPDX: Convert all of our single license tags to Linux Kernel style 2018-05-07 09:34:12 -04:00
sec.c crypto/fsl: export caam_get_era() 2020-07-27 14:16:29 +05:30