Open DonaldTsang opened 6 years ago
Thanks, some neat ideas :)
Let me know if you are interested in working on any of them.
I do have a general idea of what can be done.
#include <stdlib.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include "sha3/sph_skein.h" // assuming we are only using skein
...
uint32_t output[16]; // assuming it is a 512-bit output, otherwise 12 for 384-bit or 8 for 256-bit
sph_skein512_context ctx_skein; // set the context, each context have a standard name of "[name][length]"
sph_skein512_init(&ctx_skein); // initiating the state of the hash function to start mutating it
sph_skein512 (&ctx_skein, input, input_length); // buffering strings or arrays into the state
sph_skein512_close (&ctx_skein, output); // creating output of the hash function based on whole input