From 754267da67ec6ddeaddd377a5ff8d6804992408b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Sat, 16 Aug 2008 23:04:52 +0000 Subject: [PATCH] expose hc_evp_md git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@23570 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/hcrypto/evp.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/lib/hcrypto/evp.h b/lib/hcrypto/evp.h index 6eb25e64e..156199f4e 100644 --- a/lib/hcrypto/evp.h +++ b/lib/hcrypto/evp.h @@ -162,6 +162,21 @@ struct hc_CIPHER_CTX { unsigned char final[EVP_MAX_BLOCK_LENGTH]; }; +typedef int (*hc_evp_md_init)(EVP_MD_CTX *); +typedef int (*hc_evp_md_update)(EVP_MD_CTX *,const void *, size_t); +typedef int (*hc_evp_md_final)(void *, EVP_MD_CTX *); +typedef int (*hc_evp_md_cleanup)(EVP_MD_CTX *); + +struct hc_evp_md { + int hash_size; + int block_size; + int ctx_size; + hc_evp_md_init init; + hc_evp_md_update update; + hc_evp_md_final final; + hc_evp_md_cleanup cleanup; +}; + #if !defined(__GNUC__) && !defined(__attribute__) #define __attribute__(x) #endif