diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-10-02 22:15:02 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2010-10-02 23:26:45 +0200 |
commit | 256f3817f97398d89f59d20b654445b07eab6cdc (patch) | |
tree | d0e68ebad16646f64aa89db035c40f4457e18dd7 /lib/nettle/mac.c | |
parent | c42016790a175c3c46c435fed15331ba2b033813 (diff) | |
download | gnutls-256f3817f97398d89f59d20b654445b07eab6cdc.tar.gz |
Updated cryptodev code to support the linux cryptodev extensions.
Removed the clone() capability from HMAC. It was never used and having
it prevents using it with hardware accelerators that might not have this
capability.
Diffstat (limited to 'lib/nettle/mac.c')
-rw-r--r-- | lib/nettle/mac.c | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/lib/nettle/mac.c b/lib/nettle/mac.c index 2eb8a63880..71b9d012cb 100644 --- a/lib/nettle/mac.c +++ b/lib/nettle/mac.c @@ -186,25 +186,6 @@ static int wrap_nettle_hash_copy(void **bhd, void *ahd) return 0; } -static int wrap_nettle_hmac_copy(void **bhd, void *ahd) -{ - struct nettle_hmac_ctx *ctx = ahd; - struct nettle_hmac_ctx *dst_ctx; - int ret; - - ret = wrap_nettle_hmac_init(ctx->algo, bhd); - if (ret < 0) { - gnutls_assert(); - return ret; - } - - dst_ctx = *bhd; - - memcpy(&dst_ctx->ctx, &ctx->ctx, sizeof(ctx->ctx)); - - return 0; -} - static void wrap_nettle_md_close(void *hd) { gnutls_free(hd); @@ -318,7 +299,6 @@ gnutls_crypto_mac_st _gnutls_mac_ops = { .init = wrap_nettle_hmac_init, .setkey = wrap_nettle_hmac_setkey, .hash = wrap_nettle_hmac_update, - .copy = wrap_nettle_hmac_copy, .output = wrap_nettle_hmac_output, .deinit = wrap_nettle_md_close, }; |