1 #include "crypto_hash.h" 2 #include "sph_sha2.h" 3 crypto_hash(unsigned char * out,const unsigned char * in,unsigned long long inlen)4int crypto_hash(unsigned char *out,const unsigned char *in,unsigned long long inlen) 5 { 6 sph_sha512_context mc; 7 sph_sha512_init(&mc); 8 sph_sha512(&mc, in, inlen); 9 sph_sha512_close(&mc,out); 10 return 0; 11 } 12 13