#include #include "algs.h" static void *hash_sha1_init(void) { return(sha1_init()); } static void hash_sha1_process_bytes(void *h, const void *buf, int len) { sha1_process_bytes(h,buf,len); } static void hash_sha1_done(void *h, void *into) { sha1_result(h,into); } HASHALG hashalg_sha1 = { "sha1", 20, hash_sha1_init, hash_sha1_process_bytes, hash_sha1_done };