From 568801e89300da2ac4d6fe5364ce2746f5f21f2f Mon Sep 17 00:00:00 2001 From: Nikos Date: Sun, 16 Mar 2008 17:38:01 +0200 Subject: updated --- includes/gnutls/crypto.h | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'includes') diff --git a/includes/gnutls/crypto.h b/includes/gnutls/crypto.h index b362b9d3ec..b4f5a6ff50 100644 --- a/includes/gnutls/crypto.h +++ b/includes/gnutls/crypto.h @@ -36,19 +36,15 @@ typedef struct gnutls_crypto_cipher { typedef struct gnutls_crypto_mac { int (*init)( void** ctx); - int (*mac)( void* ctx, const void * text, int textsize); - int (*copy)( void* src_ctx, void* dst_ctx); + int (*setkey)( void* ctx, const void * key, int keysize); + int (*hash)( void* ctx, const void * text, int textsize); + int (*copy)( void** dst_ctx, void* src_ctx); int (*output) ( void* src_ctx, void* digest, int digestsize); void (*deinit)( void* ctx); } gnutls_crypto_mac_st; -typedef struct gnutls_crypto_digest { - int (*init)( void** ctx); - int (*digest)( void* ctx, const void * text, int textsize); - int (*copy)( void* src_ctx, void* dst_ctx); - int (*output) ( void* src_ctx, void* digest, int digestsize); - void (*deinit)( void* ctx); -} gnutls_crypto_digest_st; +/* the same... setkey should be null */ +typedef gnutls_crypto_mac_st gnutls_crypto_digest_st; /* priority: infinity for backend algorithms, 90 for kernel algorithms - lowest wins */ -- cgit v1.2.1