/* Creates the MD4 Hash of the users password in NT UNICODE.  */
void E_md4hash(const unsigned char *passwd, unsigned char *p16)
/* Creates the MD4 Hash of the users password in NT UNICODE.  */
void E_md4hash(const unsigned char *passwd, unsigned char *p16)
{
	int len;
	__u16 wpwd[129];
	if (passwd) {
		len = strlen((char *) passwd);
		if (len > 128)
			len = 128;
		_my_mbstowcs(wpwd, passwd, len);
	} else
		len = 0;
	wpwd[len] = 0;
	len = _my_wcslen(wpwd) * sizeof(__u16);
	mdfour(p16, (unsigned char *) wpwd, len);
	memset(wpwd, 0, 129 * 2);
}