summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorgaurav rana <gaurav.rana@freescale.com>2015-02-25 09:37:09 +0530
committerYork Sun <yorksun@freescale.com>2015-02-25 13:19:48 -0800
commit7ee8c4795d0ab0f1cd25496bfbcdedb184ef5a8d (patch)
treee72f0aeb83295ee97a8c8465eabc8e0e7a58e434 /drivers
parent0e1bf614d5045b060db8e1bf9e7f69afdf1c592f (diff)
downloadu-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 'drivers')
-rw-r--r--drivers/crypto/fsl/fsl_blob.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/crypto/fsl/fsl_blob.c b/drivers/crypto/fsl/fsl_blob.c
index bc01075..9923bcb 100644
--- a/drivers/crypto/fsl/fsl_blob.c
+++ b/drivers/crypto/fsl/fsl_blob.c
@@ -11,7 +11,7 @@
#include "desc.h"
#include "jr.h"
-int blob_decrypt(u8 *key_mod, u8 *src, u8 *dst, u8 len)
+int blob_decap(u8 *key_mod, u8 *src, u8 *dst, u32 len)
{
int ret, i = 0;
u32 *desc;
@@ -36,7 +36,7 @@ int blob_decrypt(u8 *key_mod, u8 *src, u8 *dst, u8 len)
return ret;
}
-int blob_encrypt(u8 *key_mod, u8 *src, u8 *dst, u8 len)
+int blob_encap(u8 *key_mod, u8 *src, u8 *dst, u32 len)
{
int ret, i = 0;
u32 *desc;