Blake implementation in C