Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 1,351 for BYTE (2.68 sec)

  1. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyRequestTest.java

            byte[] fileId2 = new byte[16];
            Arrays.fill(fileId2, (byte) 0xFF);
    
            byte[] fileId3 = new byte[16];
            for (int i = 0; i < 16; i++) {
                fileId3[i] = (byte) i;
            }
    
            // When & Then for each file ID
            testFileIdWriting(fileId1);
            testFileIdWriting(fileId2);
            testFileIdWriting(fileId3);
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/lease/Smb2LeaseKeyTest.java

                    (byte) 0xCC, (byte) 0xDD, (byte) 0xEE, (byte) 0xFF, 0x00 };
    
            Smb2LeaseKey key = new Smb2LeaseKey(testBytes);
            byte[] buffer = new byte[20];
    
            key.encode(buffer, 2);
    
            for (int i = 0; i < 16; i++) {
                assertEquals(testBytes[i], buffer[i + 2]);
            }
        }
    
        @Test
        @DisplayName("Should implement equals correctly")
        void testEquals() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 21 00:16:17 UTC 2025
    - 6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java

            offset += 4;
            sourceBuffer[offset++] = (byte) 1; // deletePending = true
            sourceBuffer[offset++] = (byte) 0; // directory = false
    
            // Decode to set state
            fileStandardInfo.decode(sourceBuffer, 0, sourceBuffer.length);
    
            // Now test encode
            byte[] destinationBuffer = new byte[30]; // Extra space
            int dstIndex = 3; // Start at offset 3
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/Smb2EncryptionContext.java

            final byte[] ciphertext;
            final byte[] authTag;
    
            EncryptionResult(byte[] ciphertext, byte[] authTag) {
                this.ciphertext = ciphertext;
                this.authTag = authTag;
            }
        }
    
        /**
         * Encrypt using AES-GCM with constant-time operations
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 35.5K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java

        @DisplayName("Hex Conversion Tests")
        class HexConversionTests {
    
            @Test
            @DisplayName("Various byte values are converted to uppercase hex")
            void testHexConversion() {
                byte[] challenge = new byte[] { (byte) 0x00, (byte) 0x0F, (byte) 0x10, (byte) 0x7F, (byte) 0x80, (byte) 0xFF };
                UniAddress dc = mock(UniAddress.class);
                when(dc.toString()).thenReturn("DC");
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/pac/PacMac.java

         */
        public static byte[] calculateMacHMACAES(int usage, KerberosKey baseKey, byte[] input) throws GeneralSecurityException {
            byte[] cst = { (byte) (usage >> 24 & 0xFF), (byte) (usage >> 16 & 0xFF), (byte) (usage >> 8 & 0xFF), (byte) (usage & 0xFF),
                    (byte) 0x99 };
    
            byte[] output = new byte[12];
            byte[] dk = deriveKeyAES(baseKey, cst); // Checksum key
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9K bytes
    - Viewed (0)
  7. src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java

         */
        @Test
        public void testInvalidBufferSizeRejection() {
            // Given - Buffers with various invalid sizes
            byte[] tooSmall = new byte[1024];
            byte[] tooLarge = new byte[SmbComTransaction.TRANSACTION_BUF_SIZE + 1];
            byte[] empty = new byte[0];
    
            // When - Try to release invalid buffers
            assertDoesNotThrow(() -> {
                BufferCache.releaseBuffer(tooSmall);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/fscc/FileRenameInformation2Test.java

            FileRenameInformation2 info = new FileRenameInformation2(unicodeFileName, false);
    
            byte[] buffer = new byte[200];
            int bytesWritten = info.encode(buffer, 0);
    
            // Verify the encoded data
            int nameLength = SMBUtil.readInt4(buffer, 16);
            byte[] nameBytes = new byte[nameLength];
            System.arraycopy(buffer, 20, nameBytes, 0, nameLength);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2WriteResponseTest.java

            void testWriteBytesWireFormat() {
                byte[] buffer = new byte[1024];
                int result = response.writeBytesWireFormat(buffer, 0);
                assertEquals(0, result);
            }
    
            @Test
            @DisplayName("Should return 0 regardless of buffer position")
            void testWriteBytesWireFormatDifferentPosition() {
                byte[] buffer = new byte[1024];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.9K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb1/trans/nt/NtTransNotifyChangeTest.java

            // Verify each instance maintains its own state
            byte[] dst1 = new byte[8];
            byte[] dst2 = new byte[8];
            byte[] dst3 = new byte[8];
    
            notify1.writeSetupWireFormat(dst1, 0);
            notify2.writeSetupWireFormat(dst2, 0);
            notify3.writeSetupWireFormat(dst3, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.4K bytes
    - Viewed (0)
Back to top