28 #ifndef __SHA1_ROUTINES_DOT_H__ 29 #define __SHA1_ROUTINES_DOT_H__ 57 #define memcpy_P memmove 61 #define strcpy_P strcpy 81 #define leftRotate(x, n) (x) = (((x) << (n)) | ((x) >> (32 - (n)))) 93 #endif // __SHA1_ROUTINES_DOT_H__ Definition: sha1_routines.h:73
void shaEngine(U32 *buf, U32 *h)
Definition: sha1_routines.c:222
#define U8
Definition: sha1_routines.h:44
void CL_hash(U8 *msg, int msgBytes, U8 *dest)
Perform SHA1 hash of data in software.
Definition: sha1_routines.c:213
void CL_hashInit(CL_HashContext *ctx)
Initialize context for performing SHA1 hash in software.
Definition: sha1_routines.c:37
U32 byteCountHi
Definition: sha1_routines.h:78
void CL_hashFinal(CL_HashContext *ctx, U8 *dest)
Complete the SHA1 hash in software and return the digest.
Definition: sha1_routines.c:140
U32 byteCount
Definition: sha1_routines.h:77
void CL_hashUpdate(CL_HashContext *ctx, const U8 *src, int nbytes)
Add arbitrary data to a SHA1 hash.
Definition: sha1_routines.c:62
#define U32
Definition: sha1_routines.h:52