Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 4 of 4 for writeSecurityBuffer (0.08 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. src/main/java/jcifs/smb1/ntlmssp/Type1Message.java

                System.arraycopy(NTLMSSP_SIGNATURE, 0, type1, 0, 8);
                writeULong(type1, 8, 1);
                writeULong(type1, 12, flags);
                if (hostInfo) {
                    writeSecurityBuffer(type1, 16, 32, domain);
                    writeSecurityBuffer(type1, 24, 32 + domain.length, workstation);
                }
                return type1;
            } catch (final IOException ex) {
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 7.9K bytes
    - Click Count (0)
  2. src/main/java/jcifs/ntlmssp/Type2Message.java

            pos += NTLMSSP_SIGNATURE.length;
    
            writeULong(type2, pos, NTLMSSP_TYPE2);
            pos += 4;
    
            // TargetNameFields
            final int targetNameOff = writeSecurityBuffer(type2, pos, targetBytes);
            pos += 8;
    
            writeULong(type2, pos, flags);
            pos += 4;
    
            // ServerChallenge
            final byte[] challengeBytes = getChallenge();
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 07:14:38 GMT 2025
    - 14.4K bytes
    - Click Count (0)
  3. src/main/java/jcifs/smb1/ntlmssp/NtlmMessage.java

        static void writeUShort(final byte[] dest, final int offset, final int ushort) {
            dest[offset] = (byte) (ushort & 0xff);
            dest[offset + 1] = (byte) (ushort >> 8 & 0xff);
        }
    
        static void writeSecurityBuffer(final byte[] dest, final int offset, final int bodyOffset, final byte[] src) {
            final int length = src != null ? src.length : 0;
            if (length == 0) {
                return;
            }
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  4. src/test/java/jcifs/ntlmssp/NtlmMessageTest.java

        }
    
        @Test
        void testWriteSecurityBuffer() {
            // Test writeSecurityBuffer
            byte[] dest = new byte[8]; // Enough for length, max_length, offset
            byte[] src = "Test".getBytes();
    
            // Test with non-null source array
            int nextOffset = NtlmMessage.writeSecurityBuffer(dest, 0, src);
            assertEquals(4, nextOffset, "Should return correct next offset.");
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Thu Aug 14 05:31:44 GMT 2025
    - 12.5K bytes
    - Click Count (0)
Back to Top