Skip to content
jb55Public

About

sha256 clib

Resources

Stars

43 stars

Watchers

2 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

sha256.c

Build Status

sha256 in c

Installation

Install with clib

$ clib install jb55/sha256.c

Example

unsigned char buf[32];

// simple
sha256_hash((unsigned char*)"hello", buf, 5);

// streaming data
sha256_t hash;
sha256_init(&hash);
sha256_update(&hash, (unsigned char*)"hello", 5);
sha256_update(&hash, (unsigned char*)" there", 6);
sha256_final(&hash, buf);

License

2010-06-11 : Igor Pavlov : Public domain

About

sha256 clib

Resources

Stars

43 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages