writeULong(type3, 8, 3); int offset = 64; writeSecurityBuffer(type3, 12, offset, lmResponse); offset += lmLength; writeSecurityBuffer(type3, 20, offset, ntResponse); offset += ntLength; writeSecurityBuffer(type3, 28, offset, domain); offset += domainLength; writeSecurityBuffer(type3, 36, offset, user); offset += userLength; writeSecurityBuffer(type3, 44, offset, workstation); offset += workstationLength; writeSecurityBuffer(type3, 52, offset, sessionKey); writeULong(type3, 60, flags); return type3;
writeULong(type1, 12, flags); if (hostInfo) { writeSecurityBuffer(type1, 16, 32, domain); writeSecurityBuffer(type1, 24, 32 + domain.length, workstation);
System.arraycopy(NTLMSSP_SIGNATURE, 0, type2, 0, 8); writeULong(type2, 8, 2); writeSecurityBuffer(type2, 12, data, target); writeULong(type2, 20, flags); System.arraycopy(challenge != null ? challenge : new byte[8], 0, if (context != null) System.arraycopy(context, 0, type2, 32, 8); if (targetInformation != null) { writeSecurityBuffer(type2, 40, data + target.length, targetInformation);