All Projects → jb55 → sha256.c

jb55 / sha256.c

Licence: other
sha256 clib

Programming Languages

c
50402 projects - #5 most used programming language
Makefile
30231 projects

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].