Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 565 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 565 Bytes

SHA-1

An implementation of the SHA-1 hash algorithm in C.

Reference

SHA1Init

int SHA1Init(SHA1Context* Ctx);

Call this before calling other function to init Ctx.

SHA1Update

int SHA1Update(SHA1Context* Ctx, const BYTE buf[], unsigned int length);

This function accepts an array of octets buf as the next portion of the message. length is the length of buf.

SHA1Result

int SHA1Result(SHA1Context* Ctx, BYTE digest[20]);

Computes the message digest and stores to digest.