Wiki
Download
Manual
Eggs
API
Tests
Bugs
show
edit
history
You can edit this page using
wiki syntax
for markup.
Article contents:
== Outdated egg! This is an egg for CHICKEN 4, the unsupported old release. You're almost certainly looking for [[/eggref/5/blake2|the CHICKEN 5 version of this egg]], if it exists. If it does not exist, there may be equivalent functionality provided by another egg; have a look at the [[https://wiki.call-cc.org/chicken-projects/egg-index-5.html|egg index]]. Otherwise, please consider porting this egg to the current version of CHICKEN. [[tags: egg]] == blake2 [[toc:]] == Documentation Computes BLAKE2 hashes. BLAKE2 is a cryptographic hash function that comes in two flavours, BLAKE2B (producing digests with size up to 64 bytes) and BLAKE2S (producing digests with size up to 32 bytes), that's reasonably fast and also provides a keyed mode so it can also be used as a cheap replacement for HMAC. ==== Primitives <procedure>(blake2b-primitive #!key length key)</procedure> <procedure>(blake2s-primitive #!key length key)</procedure> Returns the BLAKE2 checksum digest primitive object. {{length}} defaults to the maximum size of the digest and must be an exact quantity and greater than one. {{key}} defaults to {{#f}}, if you want to use the hash in the keyed mode you only have to supply a blob or a string whose size is greater than one and less than the hard limit for the given hash function (that is 64 bytes for BLAKE2B and 32 bytes for BLAKE2s) == Usage <enscript language=scheme> (use blake2) </enscript> == Examples <enscript highlight="scheme"> (use blake2 message-digest) (message-digest-string (blake2b-primitive length: 16) "abc") ;=> "cf4ab791c62b8d2b2109c90275287816" </enscript> == Requirements [[message-digest|message-digest]] == Notes * For use with the [[message-digest|message-digest]] extension. * The underlying implementation is the [[https://github.com/BLAKE2/BLAKE2/tree/master/ref|reference]] one that's written in C trading some speed for portability. == Author [[/users/lemonboy|LemonBoy]] == Repository [[https://github.com/LemonBoy/chicken-blake2|Github]]
Description of your changes:
I would like to authenticate
Authentication
Username:
Password:
Spam control
What do you get when you subtract 14 from 24?