Header file for SHA-1 hash algorithm.
More...
Go to the source code of this file.
|
void | sha1 (unsigned char *input, long long length, unsigned char *output) |
| Computes the SHA-1 hash of the input data and stores the result in the output buffer. More...
|
|
Header file for SHA-1 hash algorithm.
- Author
- Khoa Nguyen
◆ CRYPTOGRAPHY_SHA1_H_
#define CRYPTOGRAPHY_SHA1_H_ |
◆ sha1()
void sha1 |
( |
unsigned char * |
input, |
|
|
long long |
length, |
|
|
unsigned char * |
output |
|
) |
| |
Computes the SHA-1 hash of the input data and stores the result in the output buffer.
- Parameters
-
input | Pointer to an unsigned char array containing the data to be hashed. |
length | Length of the input data in bytes. |
output | Pointer to an unsigned char array where the resulting hash will be stored (should be 40 bytes long). |