/* password - ascii string up to 63 characters in length ssid - octet string up to 32 octets ssidlength - length of ssid in octets output must be 40 octets in length and outputs 256 bits of key  */
int PasswordHash(char *password, u8 *ssid, int ssidlength, u8 *output)
/* password - ascii string up to 63 characters in length ssid - octet string up to 32 octets ssidlength - length of ssid in octets output must be 40 octets in length and outputs 256 bits of key  */
int PasswordHash(char *password, u8 *ssid, int ssidlength, u8 *output)
{
	if ((strlen(password) > 63) || (ssidlength > 32))
		return 0;
	F(password, ssid, ssidlength, 4096, 1, output);
	F(password, ssid, ssidlength, 4096, 2, &output[SHA1_DIGEST_SIZE]);
	return 1;
}