/* Returns zero on success, CMD_RET_USAGE in case of misuse and negative on error.  */
static int do_dek_blob(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
/* Returns zero on success, CMD_RET_USAGE in case of misuse and negative on error.  */
static int do_dek_blob(cmd_tbl_t *cmdtp, int flag, int argc, char *const argv[])
{
	uint32_t src_addr, dst_addr, len;
	uint8_t *src_ptr, *dst_ptr;
	int ret = 0;
	if (argc != 4)
		return CMD_RET_USAGE;
	src_addr = simple_strtoul(argv[1], NULL, 16);
	dst_addr = simple_strtoul(argv[2], NULL, 16);
	len = simple_strtoul(argv[3], NULL, 10);
	src_ptr = map_sysmem(src_addr, len/8);
	dst_ptr = map_sysmem(dst_addr, BLOB_SIZE(len/8));
	ret = blob_encap_dek(src_ptr, dst_ptr, len);
	return ret;
}