/* This file is in the public domain. */ #include #include "algs.h" static void *hash_sha256_init(void) { return(sha256_init()); } static void hash_sha256_process_bytes(void *h, const void *buf, int len) { sha256_process_bytes(h,buf,len); } static void *hash_sha256_clone(void *h) { return(sha256_clone(h)); } static void hash_sha256_done(void *h, void *into) { sha256_result(h,into); } static void hash_sha256_drop(void *h) { sha256_drop(h); } HASHALG hashalg_sha256 = { "sha256", 0, 32, &hash_sha256_init, &hash_sha256_process_bytes, &hash_sha256_clone, &hash_sha256_done, &hash_sha256_drop };