Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 115 for produce (0.04 sec)

  1. src/test/java/jcifs/smb1/util/HMACT64Test.java

            hmac.engineUpdate(TEST_DATA, 0, TEST_DATA.length);
            byte[] result2 = hmac.engineDigest();
    
            // Should produce the same result
            assertArrayEquals(result1, result2);
        }
    
        @Test
        void testDifferentKeysProduceDifferentResults() {
            // Test that different keys produce different results
            byte[] key1 = "key1".getBytes();
            byte[] key2 = "key2".getBytes();
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.1K bytes
    - Viewed (0)
  2. src/test/java/jcifs/internal/smb2/Smb3KeyDerivationTest.java

            byte[] signingKey2 = Smb3KeyDerivation.deriveSigningKey(dialect, sessionKey, preauthIntegrity);
    
            // Then - should produce identical results
            assertArrayEquals(signingKey1, signingKey2, "Same input should produce same output");
        }
    
        @Test
        @DisplayName("Should handle empty session key")
        void testDeriveKeys_EmptySessionKey() {
            // Given
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Assert
            assertArrayEquals(expected, actual, "NT hash must match known test vector");
        }
    
        @Test
        @DisplayName("getNTHash: verify different passwords produce different hashes")
        void testGetNTHash_differentPasswords() {
            // Arrange
            String password1 = "password";
            String password2 = "Password";
    
            // Act
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  4. src/test/java/jcifs/util/CryptoTest.java

            MessageDigest hmac = Crypto.getHMACT64(key);
            byte[] result = hmac.digest(data);
    
            // Then
            assertNotNull(result);
            assertTrue(result.length > 0, "HMAC-T64 should produce non-empty result");
        }
    
        @Test
        @DisplayName("Should perform RC4 encryption/decryption")
        void testRC4() throws Exception {
            // Given
            byte[] key = "testkey123456789".getBytes(); // 16 bytes
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  5. src/test/java/jcifs/util/StringsTest.java

                if (input == null || input.isEmpty()) {
                    assertEquals(0, result.length, "Null or empty input should produce empty array");
                } else {
                    assertTrue(result.length > 0, "Non-empty input should produce non-empty array");
                }
            }
        }
    
        @Nested
        @DisplayName("Unicode and ASCII Encoding")
        class UnicodeAndASCIITests {
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 18.6K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/EmptyImmutableListMultimap.java

      private EmptyImmutableListMultimap() {
        super(ImmutableMap.<Object, ImmutableList<Object>>of(), 0);
      }
    
      /*
       * TODO(b/242884182): Figure out why this helps produce the same class file when we compile most
       * of common.collect a second time with the results of the first compilation on the classpath. Or
       * just back this out once we stop doing that (which we'll do after our internal GWT setup
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 14:59:07 UTC 2025
    - 1.8K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/FluentIterable.java

       * the order of entries.
       *
       * @param keyFunction the function used to produce the key for each value
       * @throws NullPointerException if any element of this iterable is {@code null}, or if {@code
       *     keyFunction} produces {@code null} for any key
       * @since 14.0
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 35.3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/FluentIterable.java

       * the order of entries.
       *
       * @param keyFunction the function used to produce the key for each value
       * @throws NullPointerException if any element of this iterable is {@code null}, or if {@code
       *     keyFunction} produces {@code null} for any key
       * @since 14.0
       */
      @SuppressWarnings("nullness") // Unsafe, but we can't do much about it now.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 34.8K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/fscc/FsctlPipeWaitRequestTest.java

            byte[] buffer2 = new byte[200];
            int encoded2 = request2.encode(buffer2, 0);
            assertEquals(request2.size(), encoded2);
        }
    
        @Test
        @DisplayName("Test multiple encodes produce same result")
        void testMultipleEncodesProduceSameResult() {
            // Setup
            String pipeName = "RepeatedEncode";
            long timeout = 3000L;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.1K bytes
    - Viewed (0)
  10. src/test/java/jcifs/smb1/smb1/NtlmChallengeTest.java

                when(dc.toString()).thenReturn("DC");
    
                NtlmChallenge nc = new NtlmChallenge(challenge, dc);
                String result = nc.toString();
    
                // With size = 6 * 2 = 12, should produce "000F107F80FF"
                assertTrue(result.contains("000F107F80FF"));
            }
    
            @Test
            @DisplayName("Large challenge array is handled correctly")
            void testLargeChallengeArray() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6K bytes
    - Viewed (0)
Back to top