diff options
author | Petr Štetiar <ynezz@true.cz> | 2021-07-05 11:54:26 +0200 |
---|---|---|
committer | Rafał Miłecki <rafal@milecki.pl> | 2021-10-05 16:20:10 +0200 |
commit | 8cc9a74a3f6bf363645efda6db417f8dadd3d844 (patch) | |
tree | 68f1648a077df8e49328f087eccaf94c2e47d1e8 /tools/firmware-utils/src/sha1.h | |
parent | f82c93b93c0a021921ac7a30ba6e7a090c7ddd1c (diff) | |
download | upstream-8cc9a74a3f6bf363645efda6db417f8dadd3d844.tar.gz upstream-8cc9a74a3f6bf363645efda6db417f8dadd3d844.tar.bz2 upstream-8cc9a74a3f6bf363645efda6db417f8dadd3d844.zip |
firmware-utils: update to version 2021-10-05
Includes following changes:
db65821f006c cmake: fix missing install target
3a0cfc856991 Add initial GitLab CI support
8f47adea6f87 Add missing includes for byte swap operations
fbafae9f8037 Convert to CMake based project
Additionaly moves source code into separate Git project repository and
converts the package build to utilize CMake.
Signed-off-by: Petr Štetiar <ynezz@true.cz>
[rmilecki: rebase, update to the latest repo git & rm -r src]
Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Diffstat (limited to 'tools/firmware-utils/src/sha1.h')
-rw-r--r-- | tools/firmware-utils/src/sha1.h | 57 |
1 files changed, 0 insertions, 57 deletions
diff --git a/tools/firmware-utils/src/sha1.h b/tools/firmware-utils/src/sha1.h deleted file mode 100644 index 990a52765c..0000000000 --- a/tools/firmware-utils/src/sha1.h +++ /dev/null @@ -1,57 +0,0 @@ -#ifndef _SHA1_H -#define _SHA1_H - -#ifdef __cplusplus -extern "C" { -#endif - -#ifndef _STD_TYPES -#define _STD_TYPES - -#define uchar unsigned char -#define uint unsigned int -#define ulong unsigned long int - -#endif - -typedef struct -{ - ulong total[2]; - ulong state[5]; - uchar buffer[64]; -} -sha1_context; - -/* - * Core SHA-1 functions - */ -void sha1_starts( sha1_context *ctx ); -void sha1_update( sha1_context *ctx, void *input, uint length ); -void sha1_finish( sha1_context *ctx, uchar digest[20] ); - -/* - * Output SHA-1(file contents), returns 0 if successful. - */ -int sha1_file( char *filename, uchar digest[20] ); - -/* - * Output SHA-1(buf) - */ -void sha1_csum( uchar *buf, uint buflen, uchar digest[20] ); - -/* - * Output HMAC-SHA-1(key,buf) - */ -void sha1_hmac( uchar *key, uint keylen, uchar *buf, uint buflen, - uchar digest[20] ); - -/* - * Checkup routine - */ -int sha1_self_test( void ); - -#ifdef __cplusplus -} -#endif - -#endif /* sha1.h */ |