search for: hash_v1

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

2012 Sep 04
2
[PATCH] Generalize HMAC implementation
...*str) +hmac_md5_ucs2le_string_ucase(struct hmac_context *ctx, const char *str) { size_t len; unsigned char *wstr = t_unicode_str(str, 1, &len); - hmac_md5_update(ctx, wstr, len); + hmac_update(ctx, wstr, len); } static void ATTR_NULL(2) @@ -73,13 +74,13 @@ const unsigned char *hash_v1, unsigned char hash[NTLMSSP_V2_HASH_SIZE]) { - struct hmac_md5_context ctx; + struct hmac_context ctx; - hmac_md5_init(&ctx, hash_v1, NTLMSSP_HASH_SIZE); + hmac_init(&ctx, hash_v1, NTLMSSP_HASH_SIZE, &hash_method_md5); hmac_md5_ucs2le_string_ucase(&ctx, user); if (targ...
2004 Sep 30
1
[PATCH] NTLM2 support
...server_challenge, NTLMSSP_CHALLENGE_SIZE); + md5_update(&ctx, client_challenge, NTLMSSP_CHALLENGE_SIZE); + md5_final(&ctx, session_hash); + + ntlmssp_v1_response(hash, session_hash, response); +} + +void ntlmssp_v2_response(const char *user, const char *target, const unsigned char *hash_v1, const unsigned char *challenge, diff -urpNX /usr/share/dontdiff dovecot-1.0-test46.vanilla/src/lib-ntlm/ntlm-encrypt.h dovecot-1.0-test46/src/lib-ntlm/ntlm-encrypt.h --- dovecot-1.0-test46.vanilla/src/lib-ntlm/ntlm-encrypt.h 2004-07-30 07:16:23.000000000 +0400 +++ dovecot-1.0-test46/src/lib...