Search Options

Results per page
Sort
Preferred Languages
Advance

Results 301 - 310 of 394 for inInts (0.04 sec)

  1. src/main/java/jcifs/smb1/util/MD4.java

                tail[padLen + i] = (byte) (count * 8 >>> 8 * i);
            }
    
            engineUpdate(tail, 0, tail.length);
    
            final byte[] result = new byte[16];
            // cast this MD4's context (array of 4 ints) into an array of 16 bytes.
            for (int i = 0; i < 4; i++) {
                for (int j = 0; j < 4; j++) {
                    result[i * 4 + j] = (byte) (context[i] >>> 8 * j);
                }
            }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 9.6K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/dtyp/ACETest.java

            assertEquals(0x08, ace.getFlags());
            assertEquals(0x00000001, ace.getAccessMask());
        }
    
        @ParameterizedTest
        @DisplayName("Test various access mask values")
        @ValueSource(ints = { 0x00000001, // FILE_READ_DATA
                0x00000002, // FILE_WRITE_DATA
                0x00000004, // FILE_APPEND_DATA
                0x00010000, // DELETE
                0x00020000, // READ_CONTROL
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/create/CreateContextResponseTest.java

                        "Should throw configured exception");
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 1, 10, 50, 100, 255 })
            @DisplayName("Should handle various data lengths")
            void testVariousDataLengths(int length) throws SMBProtocolDecodingException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 16.2K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

                assertEquals(3, SMBUtil.readInt2(buffer, 2));
                assertArrayEquals(salt, Arrays.copyOfRange(buffer, 4, 7));
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 1, 3, 5, 10, 20 })
            @DisplayName("Should encode various hash algorithm counts correctly")
            void testEncodeVariousHashAlgoCounts(int algoCount) {
                int[] hashAlgos = new int[algoCount];
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 34K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/util/concurrent/AbstractClosingFutureTest.java

                        assertThat(peeker.getDone(input1)).isSameInstanceAs("value1");
                        try {
                          peeker.getDone(input2Failed);
                          fail("Peeker.getDone() should fail for failed inputs");
                        } catch (ExecutionException expected) {
                        }
                        try {
                          peeker.getDone(nonInput);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 11 18:52:30 UTC 2025
    - 75.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/util/SecureKeyManager.java

            // Simple KDF implementation (should be replaced with proper KDF like HKDF)
            // This is a placeholder - real implementation should use proper KDF
            byte[] derived = new byte[length];
    
            // Combine inputs
            byte[] labelBytes = label.getBytes(java.nio.charset.StandardCharsets.UTF_8);
            byte[] input = new byte[baseKey.length + labelBytes.length + (context != null ? context.length : 0)];
    
            int pos = 0;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 21.5K bytes
    - Viewed (0)
  7. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

                assertEquals("Expected structureSize = 4", exception.getMessage());
            }
    
            @ParameterizedTest
            @ValueSource(ints = { 0, 1, 2, 3, 5, 6, 8, 16, 100, 255, 1024, 4096, 65535 })
            @DisplayName("Should throw exception for various invalid structure sizes")
            void testReadBytesWireFormatVariousInvalidSizes(int invalidSize) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  8. src/test/java/jcifs/smb/SmbTransportPoolImplTest.java

            // Verify fail counts incremented
            assertEquals(1, pool.failCounts.get("10.0.0.1"));
            assertEquals(1, pool.failCounts.get("10.0.0.2"));
        }
    
        @ParameterizedTest
        @ValueSource(ints = { 0, -1 })
        @DisplayName("Should default to port 445 when port <= 0")
        void testDefaultPort(int invalidPort) throws Exception {
            // Given: Create a new pool for this test to ensure isolation
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 19.2K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/notify/Smb2ChangeNotifyResponseTest.java

            assertEquals("file3", notifications.get(2).getFileName());
        }
    
        @DisplayName("Should throw exception for invalid structure size")
        @ParameterizedTest
        @ValueSource(ints = { 0, 1, 2, 4, 8, 10, 16, 32, 255 })
        void testInvalidStructureSize(int structureSize) {
            // Given
            byte[] buffer = new byte[256];
            SMBUtil.writeInt2(structureSize, buffer, 0);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 18.8K bytes
    - Viewed (0)
  10. cmd/encryption-v1.go

    	//    single part object) and total decrypted object size `decObjSize`
    	//
    	// 2. the (decrypted) start offset `off` and (decrypted)
    	//    length to read `length`
    	//
    	// These are the inputs to the rest of the algorithm below.
    
    	// Locate the part containing the start of the required range
    	var partEnd int
    	var cumulativeSum, encCumulativeSum int64
    	for i, size := range sizes {
    Registered: Sun Sep 07 19:28:11 UTC 2025
    - Last Modified: Fri Aug 29 02:39:48 UTC 2025
    - 37.8K bytes
    - Viewed (0)
Back to top