diff options
author | gaurav rana <gaurav.rana@freescale.com> | 2015-02-25 09:37:09 +0530 |
---|---|---|
committer | York Sun <yorksun@freescale.com> | 2015-02-25 13:19:48 -0800 |
commit | 7ee8c4795d0ab0f1cd25496bfbcdedb184ef5a8d (patch) | |
tree | e72f0aeb83295ee97a8c8465eabc8e0e7a58e434 /common/cmd_blob.c | |
parent | 0e1bf614d5045b060db8e1bf9e7f69afdf1c592f (diff) | |
download | u-boot-imx-7ee8c4795d0ab0f1cd25496bfbcdedb184ef5a8d.zip u-boot-imx-7ee8c4795d0ab0f1cd25496bfbcdedb184ef5a8d.tar.gz u-boot-imx-7ee8c4795d0ab0f1cd25496bfbcdedb184ef5a8d.tar.bz2 |
crypto/fsl: Make function names consistent for blob encapsulation/decapsulation.
This patch does the following:
1. The function names for encapsulation and decapsulation
were inconsitent in freescale's implementation and cmd_blob file.
This patch corrects the issues.
2. The function protopye is also modified to change the length parameter
from u8 to u32 to allow encapsulation and decapsulation of larger images.
3. Modified the description of km paramter in the command usage for better
readability.
Signed-off-by: Gaurav Rana <gaurav.rana@freescale.com>
Reviewed-by: Ruchika Gupta <ruchika.gupta@freescale.com>
Reviewed-by: York Sun <yorksun@freescale.com>
Diffstat (limited to 'common/cmd_blob.c')
-rw-r--r-- | common/cmd_blob.c | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/common/cmd_blob.c b/common/cmd_blob.c index 82ecaf0..d3f22a1 100644 --- a/common/cmd_blob.c +++ b/common/cmd_blob.c @@ -90,17 +90,19 @@ static char blob_help_text[] = "enc src dst len km - Encapsulate and create blob of data\n" " $len bytes long at address $src and\n" " store the result at address $dst.\n" - " $km is the 16 byte key modifier\n" - " is also required for generation/use as\n" - " key for cryptographic operation. Key\n" - " modifier should be 16 byte long.\n" + " $km is the address where the key\n" + " modifier is stored.\n" + " The modifier is required for generation\n" + " /use as key for cryptographic operation.\n" + " Key modifier should be 16 byte long.\n" "blob dec src dst len km - Decapsulate the blob of data at address\n" " $src and store result of $len byte at\n" " addr $dst.\n" - " $km is the 16 byte key modifier\n" - " is also required for generation/use as\n" - " key for cryptographic operation. Key\n" - " modifier should be 16 byte long.\n"; + " $km is the address where the key\n" + " modifier is stored.\n" + " The modifier is required for generation\n" + " /use as key for cryptographic operation.\n" + " Key modifier should be 16 byte long.\n"; U_BOOT_CMD( blob, 6, 1, do_blob, |