项目作者: mmxsrup

项目描述 :
SHA1 Hash Library for C
高级语言: C
项目地址: git://github.com/mmxsrup/libsha1.git
创建时间: 2018-12-24T14:49:10Z
项目社区:https://github.com/mmxsrup/libsha1

开源协议:

下载


libsha1

This program is tiny SHA1 Library

Algorithm

Compile

  1. make

Test

  1. ./tesh.sh

Interface

  1. void SHA1_Init(SHA1_CTX* context);
  2. void SHA1_Update(SHA1_CTX* context, const unsigned char* data, size_t len);
  3. 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