SMBAUTH_HASH_SZ
if ((keylen = data_set->elements[0].length) < SMBAUTH_HASH_SZ) {
unsigned char kxkey[SMBAUTH_HASH_SZ];
token->tkn_ssnkey.len == SMBAUTH_HASH_SZ) {
SMBAUTH_HASH_SZ);
SMBAUTH_HASH_SZ, kxkey, SMBAUTH_HASH_SZ,
SMBAUTH_HASH_SZ);
static unsigned char zero_hash[SMBAUTH_HASH_SZ];
unsigned char passwd_hash[SMBAUTH_HASH_SZ];
unsigned char ntlmhash[SMBAUTH_HASH_SZ];
bzero(ntlmhash, SMBAUTH_HASH_SZ);
rc = smb_auth_hmac_md5(md5digest, diglen, ntlmhash, SMBAUTH_HASH_SZ,
unsigned char ssn_key[SMBAUTH_HASH_SZ];
if (ndr_rpc_get_ssnkey(user_handle, ssn_key, SMBAUTH_HASH_SZ))
uchar_t nthash[SMBAUTH_HASH_SZ];
#define SMBAUTH_SESSION_KEY_SZ SMBAUTH_HASH_SZ
#define SMBAUTH_HEXHASH_SZ (SMBAUTH_HASH_SZ * 2)
#define SMBAUTH_CS_MAXLEN (SMBAUTH_BLOB_MAXLEN + SMBAUTH_HASH_SZ)
unsigned char hash[SMBAUTH_HASH_SZ];
unsigned char hash_v2[SMBAUTH_HASH_SZ];
uint8_t pw_lmhash[SMBAUTH_HASH_SZ];
uint8_t pw_nthash[SMBAUTH_HASH_SZ];
return (smb_auth_DES(lm_hash, SMBAUTH_HASH_SZ, lm_pwd,
bzero(&S21[SMBAUTH_HASH_SZ], 5);
bcopy(hash, S21, SMBAUTH_HASH_SZ);
bcopy(hash, S21, SMBAUTH_HASH_SZ);
bzero(&S21[SMBAUTH_HASH_SZ], 5);
SMBAUTH_HASH_SZ, ntlmv2_hash);
SMBAUTH_HASH_SZ, (unsigned char *)v2_rsp) != SMBAUTH_SUCCESS)
(void) memcpy(&v2_rsp[SMBAUTH_HASH_SZ], clnt_data, clen);
return (SMBAUTH_HASH_SZ + clen);
rc = smb_auth_md4(session_key, ntlm_hash, SMBAUTH_HASH_SZ);
unsigned char ntlmv2_hash[SMBAUTH_HASH_SZ];
clnt_blob_len = pwdlen - SMBAUTH_HASH_SZ;
clnt_blob = &passwd[SMBAUTH_HASH_SZ];
ntlmv2_resp = (unsigned char *)malloc(SMBAUTH_HASH_SZ + clnt_blob_len);
SMBAUTH_HASH_SZ, ntlmv2_hash,
unsigned char ntlmv2_hash[SMBAUTH_HASH_SZ];
clnt_challenge = &passwd[SMBAUTH_HASH_SZ];
uchar_t digest[SMBAUTH_HASH_SZ];
SMBAUTH_HASH_SZ);
ssn_base_key, SMBAUTH_HASH_SZ, result);
if (buflen < SMBAUTH_HASH_SZ)
rc = smb_get_machine_passwd(ipc_info.passwd, SMBAUTH_HASH_SZ);
(void) memcpy(ipc_info.passwd, passwd_hash, SMBAUTH_HASH_SZ);
(void) smb_get_machine_passwd(ipc_info.passwd, SMBAUTH_HASH_SZ);
if (buflen < SMBAUTH_HASH_SZ)
(void) memcpy(buf, ipc_info.passwd, SMBAUTH_HASH_SZ);
uint8_t passwd[SMBAUTH_HASH_SZ];
(char *)pw->pw_lmhash, SMBAUTH_HASH_SZ);
(char *)pw->pw_nthash, SMBAUTH_HASH_SZ);
(void) bintohex((char *)pw->pw_lmhash, SMBAUTH_HASH_SZ,
(void) bintohex((char *)pw->pw_nthash, SMBAUTH_HASH_SZ,