u-boot/arch/arm/imx-common
Raul Cardenas 0200020bc2 imx6: Added DEK blob generator command
Freescale's SEC block has built-in Data Encryption
Key(DEK) Blob Protocol which provides a method for
protecting a DEK for non-secure memory storage.
SEC block protects data in a data structure called
a Secret Key Blob, which provides both confidentiality
and integrity protection.
Every time the blob encapsulation is executed,
a AES-256 key is randomly generated to encrypt the DEK.
This key is encrypted with the OTP Secret key
from SoC. The resulting blob consists of the encrypted
AES-256 key, the encrypted DEK, and a 16-bit MAC.

During decapsulation, the reverse process is performed
to get back the original DEK. A caveat to the blob
decapsulation process,  is that the DEK is decrypted
in secure-memory and can only be read by FSL SEC HW.
The DEK is used to decrypt data during encrypted boot.

Commands added
--------------
  dek_blob - encapsulating DEK as a cryptgraphic blob

Commands Syntax
---------------
  dek_blob src dst len

    Encapsulate and create blob of a len-bits DEK at
    address src and store the result at address dst.

Signed-off-by: Raul Cardenas <Ulises.Cardenas@freescale.com>
Signed-off-by: Nitin Garg <nitin.garg@freescale.com>

Signed-off-by: Ulises Cardenas <ulises.cardenas@freescale.com>

Signed-off-by: Ulises Cardenas-B45798 <Ulises.Cardenas@freescale.com>
2015-03-02 09:57:06 +01:00
..
Makefile imx6: Added DEK blob generator command 2015-03-02 09:57:06 +01:00
cmd_bmode.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
cmd_dek.c imx6: Added DEK blob generator command 2015-03-02 09:57:06 +01:00
cmd_hdmidet.c Merge git://git.denx.de/u-boot-arm 2013-07-31 11:30:38 +02:00
cpu.c ARM: i.MX: provide access to reset cause through get_imx_reset_cause() 2015-02-17 10:42:54 +01:00
i2c-mxv7.c imx: i2c: Zap unnecessary malloc() calls 2014-12-30 14:05:48 +01:00
iomux-v3.c imx: mx6 sabreauto: Add board support for USB EHCI 2014-11-03 11:21:49 +01:00
misc.c imx: add missing includes 2014-10-25 15:27:35 -04:00
sata.c mx6: Remove duplication of iomuxc structure 2014-07-23 12:25:41 +02:00
speed.c Add GPL-2.0+ SPDX-License-Identifier to source files 2013-07-24 09:44:38 -04:00
spl.c imx SPL: enable boot from eMMC boot partitions. 2014-12-30 14:05:36 +01:00
spl_sd.cfg mx6: Use a common SPL configuration file 2014-11-20 10:30:18 +01:00
timer.c imx6: Added DEK blob generator command 2015-03-02 09:57:06 +01:00
video.c mx6: video_skip: Fix crash on NULL pointer 2014-11-13 17:56:15 +01:00