summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorWolfgang Denk <wd@denx.de>2007-07-10 00:01:28 +0200
committerWolfgang Denk <wd@denx.de>2007-07-10 00:01:28 +0200
commit4ef218f6fdf8d747f4589da5252b004e7d2c2876 (patch)
tree300416f5afbdfae1d680578f9d8b5561e6dd9884 /include
parentbf6a9ca9b2aa219612c3678444b8123e28aa8940 (diff)
downloadbootable_bootloader_goldelico_gta04-4ef218f6fdf8d747f4589da5252b004e7d2c2876.zip
bootable_bootloader_goldelico_gta04-4ef218f6fdf8d747f4589da5252b004e7d2c2876.tar.gz
bootable_bootloader_goldelico_gta04-4ef218f6fdf8d747f4589da5252b004e7d2c2876.tar.bz2
Coding style cleanup; update CHANGELOG.
Signed-off-by: Wolfgang Denk <wd@denx.de>
Diffstat (limited to 'include')
-rw-r--r--include/configs/pcs440ep.h4
-rw-r--r--include/sha1.h50
2 files changed, 27 insertions, 27 deletions
diff --git a/include/configs/pcs440ep.h b/include/configs/pcs440ep.h
index 0e83e48..69d97d6 100644
--- a/include/configs/pcs440ep.h
+++ b/include/configs/pcs440ep.h
@@ -480,9 +480,9 @@
/* Offset for alternate registers */
#define CFG_ATA_ALT_OFFSET (0x0000)
-/* This addresses need to be shifted one place to the left
+/* These addresses need to be shifted one place to the left
* ( bus per_addr 20 -30 is connectsd on CF bus A10-A0)
- * This values are shifted
+ * These values are shifted
*/
#define CFG_ATA_PORT_ADDR(port) ((port) << 1)
diff --git a/include/sha1.h b/include/sha1.h
index 3030f29..15ea13c 100644
--- a/include/sha1.h
+++ b/include/sha1.h
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
- * MA 02110-1301 USA
+ * MA 02110-1301 USA
*/
/*
* The SHA-1 standard was published by NIST in 1993.
@@ -35,76 +35,76 @@ extern "C" {
#define SHA1_SUM_LEN 20
/**
- * \brief SHA-1 context structure
+ * \brief SHA-1 context structure
*/
typedef struct
{
- unsigned long total[2]; /*!< number of bytes processed */
- unsigned long state[5]; /*!< intermediate digest state */
- unsigned char buffer[64]; /*!< data block being processed */
+ unsigned long total[2]; /*!< number of bytes processed */
+ unsigned long state[5]; /*!< intermediate digest state */
+ unsigned char buffer[64]; /*!< data block being processed */
}
sha1_context;
/**
- * \brief SHA-1 context setup
+ * \brief SHA-1 context setup
*
- * \param ctx SHA-1 context to be initialized
+ * \param ctx SHA-1 context to be initialized
*/
void sha1_starts( sha1_context *ctx );
/**
- * \brief SHA-1 process buffer
+ * \brief SHA-1 process buffer
*
- * \param ctx SHA-1 context
+ * \param ctx SHA-1 context
* \param input buffer holding the data
- * \param ilen length of the input data
+ * \param ilen length of the input data
*/
void sha1_update( sha1_context *ctx, unsigned char *input, int ilen );
/**
- * \brief SHA-1 final digest
+ * \brief SHA-1 final digest
*
- * \param ctx SHA-1 context
+ * \param ctx SHA-1 context
* \param output SHA-1 checksum result
*/
void sha1_finish( sha1_context *ctx, unsigned char output[20] );
/**
- * \brief Output = SHA-1( input buffer )
+ * \brief Output = SHA-1( input buffer )
*
* \param input buffer holding the data
- * \param ilen length of the input data
+ * \param ilen length of the input data
* \param output SHA-1 checksum result
*/
void sha1_csum( unsigned char *input, int ilen,
- unsigned char output[20] );
+ unsigned char output[20] );
/**
- * \brief Output = SHA-1( file contents )
+ * \brief Output = SHA-1( file contents )
*
- * \param path input file name
+ * \param path input file name
* \param output SHA-1 checksum result
- * \return 0 if successful, or 1 if fopen failed
+ * \return 0 if successful, or 1 if fopen failed
*/
int sha1_file( char *path, unsigned char output[20] );
/**
- * \brief Output = HMAC-SHA-1( input buffer, hmac key )
+ * \brief Output = HMAC-SHA-1( input buffer, hmac key )
*
- * \param key HMAC secret key
+ * \param key HMAC secret key
* \param keylen length of the HMAC key
* \param input buffer holding the data
- * \param ilen length of the input data
+ * \param ilen length of the input data
* \param output HMAC-SHA-1 result
*/
void sha1_hmac( unsigned char *key, int keylen,
- unsigned char *input, int ilen,
- unsigned char output[20] );
+ unsigned char *input, int ilen,
+ unsigned char output[20] );
/**
- * \brief Checkup routine
+ * \brief Checkup routine
*
- * \return 0 if successful, or 1 if the test failed
+ * \return 0 if successful, or 1 if the test failed
*/
int sha1_self_test( void );