Skip to content

Latest commit

 

History

History
35 lines (26 loc) · 677 Bytes

README.md

File metadata and controls

35 lines (26 loc) · 677 Bytes

libsha1

This program is tiny SHA1 Library

Algorithm

Compile

make

Test

./tesh.sh

Interface

void SHA1_Init(SHA1_CTX* context);

void SHA1_Update(SHA1_CTX* context, const unsigned char* data, size_t len);

void SHA1_Final(unsigned char digest[20], SHA1_CTX* context);

SHA1_Init : initializes a SHA1_CTX context
SHA1_Update : add data
SHA1_Final : To give the final result

Reference

SHA-1 Wikipedia Ja
https://ja.wikipedia.org/wiki/SHA-1

SHA-1の計算方法
http://bkclass.web.fc2.com/doc_sha1.html