This program is tiny SHA1 Library
make
./tesh.sh
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
SHA-1 Wikipedia Ja
https://ja.wikipedia.org/wiki/SHA-1
SHA-1の計算方法
http://bkclass.web.fc2.com/doc_sha1.html