/* This file is in the public domain. */ #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_clone(void *h) { return(sha1_clone(h)); } static void hash_sha1_done(void *h, void *into) { sha1_result(h,into); } static void hash_sha1_drop(void *h) { sha1_drop(h); } HASHALG hashalg_sha1 = { "sha1", 0, 20, &hash_sha1_init, &hash_sha1_process_bytes, &hash_sha1_clone, &hash_sha1_done, &hash_sha1_drop };