diff options
author | Nikos <nmav@crystal.(none)> | 2008-03-16 17:38:01 +0200 |
---|---|---|
committer | Nikos <nmav@crystal.(none)> | 2008-03-16 17:38:01 +0200 |
commit | 568801e89300da2ac4d6fe5364ce2746f5f21f2f (patch) | |
tree | a523e7f89a234bad5a2a097a00041cb145d3c173 /includes | |
parent | 3aea821a6ce36bd14f2a3a41598db698d031fadc (diff) | |
download | gnutls-568801e89300da2ac4d6fe5364ce2746f5f21f2f.tar.gz |
updated
Diffstat (limited to 'includes')
-rw-r--r-- | includes/gnutls/crypto.h | 14 |
1 files changed, 5 insertions, 9 deletions
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 */ |