/* nt_challenge_response - NtChallengeResponse() - RFC 2433, Sect. A.5 @challenge: 8-octet Challenge (IN) @password: 0-to-256-unicode-char Password (IN; UTF-8) @password_len: Length of password @response: 24-octet Response (OUT) Returns: 0 on success, -1 on failure  */
int nt_challenge_response(const u8 *challenge, const u8 *password, size_t password_len, u8 *response)
/* nt_challenge_response - NtChallengeResponse() - RFC 2433, Sect. A.5 @challenge: 8-octet Challenge (IN) @password: 0-to-256-unicode-char Password (IN; UTF-8) @password_len: Length of password @response: 24-octet Response (OUT) Returns: 0 on success, -1 on failure  */
int nt_challenge_response(const u8 *challenge, const u8 *password, size_t password_len, u8 *response)
{
	u8 password_hash[16];
	if (nt_password_hash(password, password_len, password_hash))
		return -1;
	challenge_response(challenge, password_hash, response);
	return 0;
}