summaryrefslogtreecommitdiff
path: root/lib/nettle
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-27 10:52:55 +0300
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-04-27 10:52:55 +0300
commit73ec74c2ae166b5d8d2bc71022aa08258644b0a8 (patch)
tree8d71cf1c91d84e902c7236d2b24a67db93a7abfa /lib/nettle
parent6f0ecbf401b4a764ecb0f1e77e1cffccc441f8ba (diff)
downloadgnutls-73ec74c2ae166b5d8d2bc71022aa08258644b0a8.tar.gz
eliminate the reset ability from hashes
Diffstat (limited to 'lib/nettle')
-rw-r--r--lib/nettle/mac.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/nettle/mac.c b/lib/nettle/mac.c
index 9e95c2a1ad..3dfa81dd51 100644
--- a/lib/nettle/mac.c
+++ b/lib/nettle/mac.c
@@ -428,16 +428,6 @@ wrap_nettle_hash_output (void *src_ctx, void *digest, size_t digestsize)
return 0;
}
-static void
-wrap_nettle_hash_reset (void *src_ctx)
-{
- struct nettle_hash_ctx *ctx;
- ctx = src_ctx;
-
- _ctx_init(ctx->algo, ctx->ctx_ptr);
-}
-
-
gnutls_crypto_mac_st _gnutls_mac_ops = {
.init = wrap_nettle_mac_init,
.setkey = wrap_nettle_mac_set_key,
@@ -452,7 +442,6 @@ gnutls_crypto_mac_st _gnutls_mac_ops = {
gnutls_crypto_digest_st _gnutls_digest_ops = {
.init = wrap_nettle_hash_init,
.hash = wrap_nettle_hash_update,
- .reset = wrap_nettle_hash_reset,
.output = wrap_nettle_hash_output,
.deinit = wrap_nettle_hash_deinit,
.fast = wrap_nettle_hash_fast,