summaryrefslogtreecommitdiffstats
path: root/crypto_polarssl.c
diff options
context:
space:
mode:
authorAdriaan de Jong <dejong@fox-it.com>2011-07-14 21:35:45 +0200
committerDavid Sommerseth <davids@redhat.com>2011-10-22 18:02:08 +0200
commit62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37 (patch)
tree22fa11910c9c5a6060eb95c73081ed6f7aabb7d5 /crypto_polarssl.c
parent0d4ec3d8bbf39e4802781e1b3c881d76e068217f (diff)
downloadopenvpn-62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37.tar.gz
openvpn-62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37.tar.xz
openvpn-62242ed28d4cb3adec4edd6c39c6ed3f1c50cb37.zip
Moved HMAC prints back to main crypto module
Signed-off-by: Adriaan de Jong <dejong@fox-it.com> Acked-by: David Sommerseth <davids@redhat.com> Signed-off-by: David Sommerseth <davids@redhat.com>
Diffstat (limited to 'crypto_polarssl.c')
-rw-r--r--crypto_polarssl.c21
1 files changed, 1 insertions, 20 deletions
diff --git a/crypto_polarssl.c b/crypto_polarssl.c
index 368e8f8..e4b9099 100644
--- a/crypto_polarssl.c
+++ b/crypto_polarssl.c
@@ -511,11 +511,8 @@ md_ctx_final (md_context_t *ctx, uint8_t *dst)
* TODO: re-enable dmsg for crypto debug
*/
void
-hmac_ctx_init (md_context_t *ctx, const uint8_t *key, int key_len, const md_info_t *kt,
- const char *prefix)
+hmac_ctx_init (md_context_t *ctx, const uint8_t *key, int key_len, const md_info_t *kt)
{
- struct gc_arena gc = gc_new ();
-
ASSERT(NULL != kt && NULL != ctx);
CLEAR(*ctx);
@@ -523,24 +520,8 @@ hmac_ctx_init (md_context_t *ctx, const uint8_t *key, int key_len, const md_info
ASSERT(0 == md_init_ctx(ctx, kt));
ASSERT(0 == md_hmac_starts(ctx, key, key_len));
- if (prefix)
- msg (D_HANDSHAKE,
- "%s: Using %d bit message hash '%s' for HMAC authentication",
- prefix, md_get_size(kt) * 8, md_get_name(kt));
-
/* make sure we used a big enough key */
ASSERT (md_get_size(kt) <= key_len);
-
- if (prefix)
- dmsg (D_SHOW_KEYS, "%s: HMAC KEY: %s", prefix,
- format_hex (key, key_len, 0, &gc));
-// if (prefix)
-// dmsg (D_CRYPTO_DEBUG, "%s: HMAC size=%d block_size=%d",
-// prefix,
-// md_get_size(md_info),
-// EVP_MD_block_size (md_info));
-
- gc_free (&gc);
}
void