Lines Matching full:hash
1 /* ---- HASH FUNCTIONS ---- */
149 /** hash descriptor */
151 /** name of hash */
164 /** Init a hash state
165 @param hash The hash to initialize
168 int (*init)(hash_state *hash);
170 @param hash The hash state
171 @param in The data to hash
175 int (*process)(hash_state *hash, const unsigned char *in, unsigned long inlen);
177 @param hash The hash state
181 int (*done)(hash_state *hash, unsigned char *out);
187 /* accelerated hmac callback: if you need to-do multiple packets just use the generic hmac_memory and provide a hash callback */
198 int chc_done(hash_state * md, unsigned char *hash);
206 int whirlpool_done(hash_state * md, unsigned char *hash);
214 int sha512_done(hash_state * md, unsigned char *hash);
225 int sha384_done(hash_state * md, unsigned char *hash);
233 int sha256_done(hash_state * md, unsigned char *hash);
243 int sha224_done(hash_state * md, unsigned char *hash);
252 int sha1_done(hash_state * md, unsigned char *hash);
260 int md5_done(hash_state * md, unsigned char *hash);
268 int md4_done(hash_state * md, unsigned char *hash);
276 int md2_done(hash_state * md, unsigned char *hash);
284 int tiger_done(hash_state * md, unsigned char *hash);
292 int rmd128_done(hash_state * md, unsigned char *hash);
300 int rmd160_done(hash_state * md, unsigned char *hash);
308 int rmd256_done(hash_state * md, unsigned char *hash);
316 int rmd320_done(hash_state * md, unsigned char *hash);
326 int register_hash(const struct ltc_hash_descriptor *hash);
327 int unregister_hash(const struct ltc_hash_descriptor *hash);
332 int hash_memory(int hash,
335 int hash_memory_multi(int hash, unsigned char *out, unsigned long *outlen,
337 int hash_filehandle(int hash, FILE *in, unsigned char *out, unsigned long *outlen);
338 int hash_file(int hash, const char *fname, unsigned char *out, unsigned long *outlen);
340 /* a simple macro for making hash "process" functions */