
Go to the source code of this file.
Macros | |
| #define | ROTATE_LEFT32(a, n) (((a) << (n)) | ((a) >> (32 - (n)))) |
Functions | |
| int | SHA1_Final (unsigned char *md, SHA_CTX *ctx) |
| int | SHA1_Init (SHA_CTX *ctx) |
| static void | SHA1_ProcessBlock (SHA_CTX *ctx) |
| int | SHA1_Update (SHA_CTX *ctx, const void *data, size_t len) |
Variables | |
| static unsigned char | pad [64] |
| #define ROTATE_LEFT32 | ( | a, | |
| n | |||
| ) | (((a) << (n)) | ((a) >> (32 - (n)))) |
| int SHA1_Final | ( | unsigned char * | md, |
| SHA_CTX * | ctx | ||
| ) |
Produce final SHA1 hash
| [out] | md | SHA1 hash produced (must be atleast SHA1_DIGEST_LENGTH in length) |
| [in,out] | ctx | hashing context structure |
| int SHA1_Init | ( | SHA_CTX * | ctx | ) |
Initializes the SHA1 hashing algorithm
| [in,out] | ctx | hashing context structure |
| int SHA1_Update | ( | SHA_CTX * | ctx, |
| const void * | data, | ||
| size_t | len | ||
| ) |
Updates a block to the SHA1 hash
| [in,out] | ctx | hashing context structure |
| [in] | data | block of data to hash |
| [in] | len | length of block to hash |
|
static |