haskell-crypto / cryptonite

lowlevel set of cryptographic primitives for haskell
Other
226 stars 139 forks source link

Expose interface to keyed Blake2 #364

Closed MatthiasValvekens closed 1 year ago

MatthiasValvekens commented 2 years ago

Earlier today I noticed an old open issue for keyed Blake2 support (see #196). Since I need Blake2b-MAC for one of my own pet projects, and it was a simple matter of properly exposing an existing C interface, I figured I'd have a go at adding it myself.

Here's a summary of the changes:

Note that this is my first time messing around with cryptonite internals, and my experience with the foreign function interface is also pretty limited. In particular, I'd really appreciate a sanity check on the following points:

If there's anything else I need to address, please don't hesitate to tell me.

Thanks a lot!

vincenthz commented 1 year ago

archiving repository