Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 776 for zeros (0.02 sec)

  1. src/test/java/jcifs/smb/SIDTest.java

            }
    
            @Test
            @DisplayName("toString uses hex authority when high bytes are non-zero")
            void testToStringHexAuthority() {
                byte[] ident = new byte[] { 1, 2, 3, 4, 5, 6 }; // high bytes non-zero -> hex representation
                SID sid = new SID(buildSidT((byte) 1, ident, 7, 8), jcifs.SID.SID_TYPE_USE_NONE, null, null, false);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  2. src/main/java/jcifs/NetbiosAddress.java

         */
        boolean isPermanent(CIFSContext tc) throws UnknownHostException;
    
        /**
         * Retrieves the MAC address of the remote network interface. Samba returns all zeros.
         *
         * @param tc
         *            context to use
         *
         * @return the MAC address as an array of six bytes
         * @throws UnknownHostException
         *             if the host cannot be resolved to
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkTest.java

                assertEquals(length, SMBUtil.readInt4(buffer, startIndex + 16));
    
                // Verify reserved bytes are zeros
                for (int i = 0; i < RESERVED_BYTES; i++) {
                    assertEquals(0, buffer[startIndex + 20 + i]);
                }
            }
    
            @Test
            @DisplayName("Should encode zero values correctly")
            void testEncodeZeroValues() {
                // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/util/SMBUtilTest.java

                assertEquals((byte) 0xFF, dst[i]);
            }
    
            // Test with zero
            SMBUtil.writeInt8(0L, dst, 16);
            for (int i = 16; i < 24; i++) {
                assertEquals((byte) 0x00, dst[i]);
            }
        }
    
        @Test
        void testReadTime() {
            byte[] src = new byte[16];
    
            // Test with zero time
            SMBUtil.writeInt8(0L, src, 0);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  5. src/test/java/jcifs/internal/smb2/ioctl/Smb2IoctlResponseTest.java

            resp.decode(packet, 0);
    
            SrvPipePeekResponse peek = resp.getOutputData(SrvPipePeekResponse.class);
            assertNotNull(peek);
            assertEquals(16, resp.getOutputLength());
            // Default zeros
            assertEquals(0, peek.getNamedPipeState());
            assertEquals(0, peek.getReadDataAvailable());
            assertEquals(0, peek.getNumberOfMessages());
            assertEquals(0, peek.getMessageLength());
        }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.9K bytes
    - Viewed (0)
  6. src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java

                response = mock(CommonServerMessageBlock.class);
            }
    
            @Test
            @DisplayName("Should sign data correctly with zero signature field")
            void testSignZeroesSignatureField() {
                // Fill signature field with non-zero values
                for (int i = 0; i < SIGNATURE_LENGTH; i++) {
                    data[SIGNATURE_OFFSET + i] = (byte) 0xFF;
                }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 43.7K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/fscc/BasicFileInformationTest.java

        @Test
        @DisplayName("Test with edge case time values")
        void testWithEdgeCaseTimeValues() {
            // Test with various time values including edge cases
            long[][] timeValues = { { 0L, 0L, 0L, 0L }, // All zeros
                    { Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE, Long.MAX_VALUE }, // Max values
                    { 1L, 2L, 3L, 4L }, // Small values
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java

            byte[] originalDecKey = testDecryptionKey.clone();
    
            // Ensure keys are not zero initially
            assertFalse(isAllZeros(originalEncKey), "Original encryption key should not be all zeros");
            assertFalse(isAllZeros(originalDecKey), "Original decryption key should not be all zeros");
    
            // When
            encryptionContext.secureWipeKeys();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 44.1K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/io/Smb2FlushRequestTest.java

            assertArrayEquals(testFileId, copiedFileId);
        }
    
        @Test
        @DisplayName("Test with various file ID patterns")
        void testWithVariousFileIdPatterns() {
            // Test with all zeros
            byte[] zeroFileId = new byte[16];
            Smb2FlushRequest zeroRequest = new Smb2FlushRequest(mockConfig, zeroFileId);
            testFileIdInRequest(zeroRequest, zeroFileId);
    
            // Test with all ones
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/Smb2TransformHeaderTest.java

            assertEquals((byte) 0x53, aad[2]);
            assertEquals((byte) 0xFD, aad[3]);
    
            // Verify signature is zeroed out (16 bytes of zeros)
            for (int i = 4; i < 20; i++) {
                assertEquals(0, aad[i], "Signature bytes should be zero in AAD");
            }
    
            // Verify nonce matches at position 20
            for (int i = 0; i < 16; i++) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.7K bytes
    - Viewed (0)
Back to top