ID Chip Reader
sha1.h File Reference

Header file for SHA-1 hash algorithm. More...

Go to the source code of this file.

Macros

#define CRYPTOGRAPHY_SHA1_H_
 

Functions

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...
 

Detailed Description

Header file for SHA-1 hash algorithm.

Author
Khoa Nguyen

Macro Definition Documentation

◆ CRYPTOGRAPHY_SHA1_H_

#define CRYPTOGRAPHY_SHA1_H_

Function Documentation

◆ 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
inputPointer to an unsigned char array containing the data to be hashed.
lengthLength of the input data in bytes.
outputPointer to an unsigned char array where the resulting hash will be stored (should be 40 bytes long).