search for: hmac_md5_upd

Displaying 2 results from an estimated 2 matches for "hmac_md5_upd".

2004 Aug 30
0
[PATCH] NTLM fixes
...d(des_hash, challenge, response); + deshash(response, des_hash, challenge); + deshash(response + 8, des_hash + 7, challenge); + deshash(response + 16, des_hash + 14, challenge); + + safe_memset(des_hash, 0, sizeof(des_hash)); } void @@ -131,4 +125,6 @@ ntlmssp_v2_response(const char *user, co hmac_md5_update(&ctx, challenge, NTLMSSP_CHALLENGE_SIZE); hmac_md5_update(&ctx, blob, blob_size); hmac_md5_final(&ctx, response); + + safe_memset(hash, 0, sizeof(hash)); } -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-sig...
2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...ESULTLEN]; - struct hmac_md5_context ctx; + struct hmac_context ctx; const char *response_hex; if (size != CRAM_MD5_CONTEXTLEN) { @@ -59,9 +61,10 @@ return FALSE; } + hmac_init(&ctx, NULL, 0, &hash_method_md5); hmac_md5_set_cram_context(&ctx, credentials); - hmac_md5_update(&ctx, request->challenge, strlen(request->challenge)); - hmac_md5_final(&ctx, digest); + hmac_update(&ctx, request->challenge, strlen(request->challenge)); + hmac_final(&ctx, digest); response_hex = binary_to_hex(digest, sizeof(digest)); diff --git a/src/auth/me...