view src/lib-ntlm/ntlm-encrypt.h @ 6410:e4eb71ae8e96 HEAD

Changed .h ifdef/defines to use <NAME>_H format.
author Timo Sirainen <tss@iki.fi>
date Sun, 16 Sep 2007 11:31:27 +0300
parents 1065a557516b
children c93ca5e46a8a
line wrap: on
line source

#ifndef NTLM_ENCRYPT_H
#define NTLM_ENCRYPT_H

const unsigned char *
lm_hash(const char *passwd, unsigned char hash[LM_HASH_SIZE]);

const unsigned char *
ntlm_v1_hash(const char *passwd, unsigned char hash[NTLMSSP_HASH_SIZE]);

void ntlmssp_v1_response(const unsigned char *hash,
			 const unsigned char *challenge,
			 unsigned char response[NTLMSSP_RESPONSE_SIZE]);

void ntlmssp2_response( const unsigned char *hash,
			const unsigned char *server_challenge,
			const unsigned char *client_challenge,
			unsigned char response[NTLMSSP_RESPONSE_SIZE]);

void ntlmssp_v2_response(const char *user, const char *target,
			 const unsigned char *hash_v1,
			 const unsigned char *challenge,
			 const unsigned char *blob, size_t blob_size,
			 unsigned char response[NTLMSSP_V2_RESPONSE_SIZE]);

#endif