ntlm-encrypt.c revision 4cc046655697b1b387fd10ccc7aa821e43495a1e
/*
* NTLM and NTLMv2 hash generation.
*
* Copyright (c) 2004 Andrey Panin <pazke@donpac.ru>
*
* This software is released under the MIT license.
*/
#include "lib.h"
#include "buffer.h"
#include "compat.h"
#include "safe-memset.h"
#include "md4.h"
#include "md5.h"
#include "hmac.h"
#include "ntlm.h"
#include "ntlm-des.h"
#include <ctype.h>
static unsigned char *
{
}
return buffer_free_without_data(&wstr);
}
{
unsigned char buffer[14];
unsigned int i;
for (i = 0; i < sizeof(buffer); i++)
}
{
}
static void
{
}
static void ATTR_NULL(2)
const unsigned char *hash_v1,
unsigned char hash[NTLMSSP_V2_HASH_SIZE])
{
struct hmac_context ctx;
}
void
ntlmssp_v1_response(const unsigned char *hash,
const unsigned char *challenge,
unsigned char response[NTLMSSP_RESPONSE_SIZE])
{
sizeof(des_hash) - NTLMSSP_HASH_SIZE);
}
void
ntlmssp2_response(const unsigned char *hash,
const unsigned char *server_challenge,
const unsigned char *client_challenge,
unsigned char response[NTLMSSP_RESPONSE_SIZE])
{
struct md5_context ctx;
unsigned char session_hash[MD5_RESULTLEN];
}
void
const unsigned char *hash_v1,
const unsigned char *challenge,
unsigned char response[NTLMSSP_V2_RESPONSE_SIZE])
{
struct hmac_context ctx;
unsigned char hash[NTLMSSP_V2_HASH_SIZE];
}