This new command supports hashing SHA1 and SHA256. It could be extended to others such as MD5 and the CRC algorithms. The syntax is modeled on those: hash <algorithm> <address> <length> [*<dest_addr> | <dest_envvar>] to calculate a hash, and: hash -v <algorithm> <address> <length> [*<verify_addr> | <verify_envvar>] to verify a hash. Use CONFIG_CMD_HASH to enable the command, CONFIG_SHA1 to enable SHA1 and CONFIG_SHA256 to enable SHA256. The existing sha1sum command remains. Signed-off-by: Simon Glass <sjg@chromium.org>
95 lines
4.2 KiB
C
95 lines
4.2 KiB
C
/*
|
|
* Copyright 2007 Freescale Semiconductor, Inc.
|
|
*
|
|
* This file is licensed under the terms of the GNU General Public
|
|
* License Version 2. This file is licensed "as is" without any
|
|
* warranty of any kind, whether express or implied.
|
|
*/
|
|
|
|
#ifndef _CONFIG_CMD_ALL_H
|
|
#define _CONFIG_CMD_ALL_H
|
|
|
|
/*
|
|
* Alphabetical list of all possible commands.
|
|
*/
|
|
|
|
#define CONFIG_CMD_AMBAPP /* AMBA Plug & Play Bus print utility */
|
|
#define CONFIG_CMD_ASKENV /* ask for env variable */
|
|
#define CONFIG_CMD_BDI /* bdinfo */
|
|
#define CONFIG_CMD_BEDBUG /* Include BedBug Debugger */
|
|
#define CONFIG_CMD_BMP /* BMP support */
|
|
#define CONFIG_CMD_BOOTD /* bootd */
|
|
#define CONFIG_CMD_BOOTZ /* boot zImage */
|
|
#define CONFIG_CMD_BSP /* Board Specific functions */
|
|
#define CONFIG_CMD_CACHE /* icache, dcache */
|
|
#define CONFIG_CMD_CDP /* Cisco Discovery Protocol */
|
|
#define CONFIG_CMD_CONSOLE /* coninfo */
|
|
#define CONFIG_CMD_DATE /* support for RTC, date/time...*/
|
|
#define CONFIG_CMD_DHCP /* DHCP Support */
|
|
#define CONFIG_CMD_DIAG /* Diagnostics */
|
|
#define CONFIG_CMD_DISPLAY /* Display support */
|
|
#define CONFIG_CMD_DOC /* Disk-On-Chip Support */
|
|
#define CONFIG_CMD_DTT /* Digital Therm and Thermostat */
|
|
#define CONFIG_CMD_ECHO /* echo arguments */
|
|
#define CONFIG_CMD_EDITENV /* editenv */
|
|
#define CONFIG_CMD_EEPROM /* EEPROM read/write support */
|
|
#define CONFIG_CMD_ELF /* ELF (VxWorks) load/boot cmd */
|
|
#define CONFIG_CMD_EXT2 /* EXT2 Support */
|
|
#define CONFIG_CMD_FAT /* FAT support */
|
|
#define CONFIG_CMD_FDC /* Floppy Disk Support */
|
|
#define CONFIG_CMD_FDOS /* Floppy DOS support */
|
|
#define CONFIG_CMD_FLASH /* flinfo, erase, protect */
|
|
#define CONFIG_CMD_FPGA /* FPGA configuration Support */
|
|
#define CONFIG_CMD_GETTIME /* Get time since boot */
|
|
#define CONFIG_CMD_HASH /* calculate hash / digest */
|
|
#define CONFIG_CMD_HWFLOW /* RTS/CTS hw flow control */
|
|
#define CONFIG_CMD_I2C /* I2C serial bus support */
|
|
#define CONFIG_CMD_IDE /* IDE harddisk support */
|
|
#define CONFIG_CMD_IMI /* iminfo */
|
|
#define CONFIG_CMD_IMLS /* List all found images */
|
|
#define CONFIG_CMD_IMMAP /* IMMR dump support */
|
|
#define CONFIG_CMD_IRQ /* irqinfo */
|
|
#define CONFIG_CMD_ITEST /* Integer (and string) test */
|
|
#define CONFIG_CMD_JFFS2 /* JFFS2 Support */
|
|
#define CONFIG_CMD_KGDB /* kgdb */
|
|
#define CONFIG_CMD_LICENSE /* console license display */
|
|
#define CONFIG_CMD_LOADB /* loadb */
|
|
#define CONFIG_CMD_LOADS /* loads */
|
|
#define CONFIG_CMD_MEMORY /* md mm nm mw cp cmp crc base loop mtest */
|
|
#define CONFIG_CMD_MFSL /* FSL support for Microblaze */
|
|
#define CONFIG_CMD_MII /* MII support */
|
|
#define CONFIG_CMD_MISC /* Misc functions like sleep etc*/
|
|
#define CONFIG_CMD_MMC /* MMC support */
|
|
#define CONFIG_CMD_MTDPARTS /* mtd parts support */
|
|
#define CONFIG_CMD_NAND /* NAND support */
|
|
#define CONFIG_CMD_NET /* bootp, tftpboot, rarpboot */
|
|
#define CONFIG_CMD_NFS /* NFS support */
|
|
#define CONFIG_CMD_ONENAND /* OneNAND support */
|
|
#define CONFIG_CMD_PCI /* pciinfo */
|
|
#define CONFIG_CMD_PCMCIA /* PCMCIA support */
|
|
#define CONFIG_CMD_PING /* ping support */
|
|
#define CONFIG_CMD_PORTIO /* Port I/O */
|
|
#define CONFIG_CMD_REGINFO /* Register dump */
|
|
#define CONFIG_CMD_REISER /* Reiserfs support */
|
|
#define CONFIG_CMD_RARP /* rarpboot support */
|
|
#define CONFIG_CMD_READ /* Read data from partition */
|
|
#define CONFIG_CMD_RUN /* run command in env variable */
|
|
#define CONFIG_CMD_SAVEENV /* saveenv */
|
|
#define CONFIG_CMD_SAVES /* save S record dump */
|
|
#define CONFIG_CMD_SCSI /* SCSI Support */
|
|
#define CONFIG_CMD_SDRAM /* SDRAM DIMM SPD info printout */
|
|
#define CONFIG_CMD_SETEXPR /* setexpr support */
|
|
#define CONFIG_CMD_SETGETDCR /* DCR support on 4xx */
|
|
#define CONFIG_CMD_SNTP /* SNTP support */
|
|
#define CONFIG_CMD_SOURCE /* "source" command support */
|
|
#define CONFIG_CMD_SPI /* SPI utility */
|
|
#define CONFIG_CMD_TERMINAL /* built-in Serial Terminal */
|
|
#define CONFIG_CMD_UBI /* UBI Support */
|
|
#define CONFIG_CMD_UBIFS /* UBIFS Support */
|
|
#define CONFIG_CMD_UNIVERSE /* Tundra Universe Support */
|
|
#define CONFIG_CMD_UNZIP /* unzip from memory to memory */
|
|
#define CONFIG_CMD_USB /* USB Support */
|
|
#define CONFIG_CMD_XIMG /* Load part of Multi Image */
|
|
#define CONFIG_CMD_ZFS /* ZFS Support */
|
|
|
|
#endif /* _CONFIG_CMD_ALL_H */
|