#include <stdint.h>
#include <stddef.h>
Go to the source code of this file.
#define SHA1_DIGEST_LENGTH (160/8) |
SHA-1 Digest Length (number of bytes in SHA1)
Definition at line 53 of file SHA1.h.
int SHA1_Final |
( |
unsigned char * |
md, |
|
|
SHA_CTX * |
ctx |
|
) |
| |
Produce final SHA1 hash
- Parameters
-
[out] | md | SHA1 hash produced (must be atleast SHA1_DIGEST_LENGTH in length) |
[in,out] | ctx | hashing context structure |
- See also
- SHA1_Init
-
SHA1_Final
Definition at line 139 of file SHA1.c.
Initializes the SHA1 hashing algorithm
- Parameters
-
[in,out] | ctx | hashing context structure |
- See also
- SHA1_Update
-
SHA1_Final
Definition at line 77 of file SHA1.c.
int SHA1_Update |
( |
SHA_CTX * |
ctx, |
|
|
const void * |
data, |
|
|
size_t |
len |
|
) |
| |
Updates a block to the SHA1 hash
- Parameters
-
[in,out] | ctx | hashing context structure |
[in] | data | block of data to hash |
[in] | len | length of block to hash |
- See also
- SHA1_Init
-
SHA1_Final
Definition at line 173 of file SHA1.c.