NTLM_HASH_SZ
uchar_t iod_nthash[NTLM_HASH_SZ];
uchar_t iod_lmhash[NTLM_HASH_SZ];
static const char zeros[NTLM_HASH_SZ] = {0};
if (bcmp(zeros, &is->iod_nthash, NTLM_HASH_SZ))
smb_hexdump(&is->iod_nthash, NTLM_HASH_SZ);
if (bcmp(zeros, &is->iod_lmhash, NTLM_HASH_SZ))
smb_hexdump(&is->iod_lmhash, NTLM_HASH_SZ);
memcpy(ctx->ct_nthash, nthash, NTLM_HASH_SZ);
memcpy(ctx->ct_nthash, nthash, NTLM_HASH_SZ);
bcopy(hash, S21, NTLM_HASH_SZ);
MD4Update(&md4, nt_hash, NTLM_HASH_SZ);
uchar_t digest[NTLM_HASH_SZ];
HMACT64(v2hash, v1hash, NTLM_HASH_SZ,
HMACT64(rhash, v2hash, NTLM_HASH_SZ, data, dlen);
HMACT64(ssn_key, v2hash, NTLM_HASH_SZ, ntresp, NTLM_HASH_SZ);
uchar_t v2hash[NTLM_HASH_SZ];
lmresp = mb_reserve(lm_mbp, NTLM_HASH_SZ);
ntresp = mb_reserve(nt_mbp, NTLM_HASH_SZ);
uchar_t data[NTLM_HASH_SZ];
HMACT64(kxkey, ssn_key, NTLM_HASH_SZ,
data, NTLM_HASH_SZ);
err = smb_encrypt_DES(hash, NTLM_HASH_SZ,
uchar_t h_mic[NTLM_HASH_SZ];
memset(ssp_st->ss_ssnkey, 0, NTLM_HASH_SZ);
memset(ssp_st->ss_kxkey, 0, NTLM_HASH_SZ);
memcpy(ssp_st->ss_kxkey, ssp_st->ss_ssnkey, NTLM_HASH_SZ);
memcpy(ssp_st->ss_kxkey, ssp_st->ss_ssnkey, NTLM_HASH_SZ);
memcpy(ssp_st->ss_ssnkey, ssp_st->ss_kxkey, NTLM_HASH_SZ);
pmic = mb_reserve(out_mb, NTLM_HASH_SZ);
encr_ssn_key = mb_reserve(ek_mbp, NTLM_HASH_SZ);
(void) smb_get_urandom(ssp_st->ss_ssnkey, NTLM_HASH_SZ);
err = smb_encrypt_RC4(encr_ssn_key, NTLM_HASH_SZ,
ssp_st->ss_kxkey, NTLM_HASH_SZ,
ssp_st->ss_ssnkey, NTLM_HASH_SZ);
ctx->ct_ssnkey_buf = malloc(NTLM_HASH_SZ);
ctx->ct_ssnkey_len = NTLM_HASH_SZ;
memcpy(ctx->ct_ssnkey_buf, ssp_st->ss_ssnkey, NTLM_HASH_SZ);
uchar_t ss_ssnkey[NTLM_HASH_SZ];
uchar_t ss_kxkey[NTLM_HASH_SZ];