Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 315 for hash2 (0.02 sec)

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

            // Verify hash is not null
            byte[] hash = transport.getPreauthIntegrityHash();
            assertNotNull(hash);
    
            // Verify hash is a copy, not the original
            byte[] hash2 = transport.getPreauthIntegrityHash();
            assertNotSame(hash, hash2);
            assertArrayEquals(hash, hash2);
        }
    
        /**
         * Test that pre-auth hash is reset on error
         */
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/hash/HashTestUtils.java

            int key2 = key1 ^ (1 << i);
            // get hashes
            int hash1 = function.hashInt(key1).asInt();
            int hash2 = function.hashInt(key2).asInt();
            // test whether the hash values have same output bits
            same |= ~(hash1 ^ hash2);
            // test whether the hash values have different output bits
            diff |= hash1 ^ hash2;
    
            count++;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  3. src/test/java/jcifs/util/CryptoTest.java

        @DisplayName("Should calculate MD4 hash correctly")
        void testMD4Hash() {
            // Given
            String input = "Hello World";
            byte[] data = input.getBytes();
    
            // When
            MessageDigest md4 = Crypto.getMD4();
            byte[] hash = md4.digest(data);
    
            // Then
            assertNotNull(hash);
            assertEquals(16, hash.length); // MD4 produces 128-bit hash
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 7.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/NtlmUtilTest.java

            // Act
            byte[] hash1 = NtlmUtil.getNTHash(password1);
            byte[] hash2 = NtlmUtil.getNTHash(password2);
    
            // Assert
            assertFalse(Arrays.equals(hash1, hash2), "Different passwords should produce different hashes");
            assertEquals(16, hash1.length, "NT hash should be 16 bytes");
            assertEquals(16, hash2.length, "NT hash should be 16 bytes");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbTransportImplTest.java

                byte[] hash1 = transport.calculatePreauthHash(input, 0, input.length, null);
                assertNotNull(hash1);
                assertEquals(64, hash1.length, "SHA-512 size");
    
                byte[] hash2 = transport.calculatePreauthHash(new byte[] { 50 }, 0, 1, hash1);
                assertNotNull(hash2);
                assertEquals(64, hash2.length);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.6K bytes
    - Viewed (0)
  6. src/test/java/jcifs/netbios/NameTest.java

        }
    
        @Test
        void hashCode_shouldBeConsistent() {
            Name name = new Name(mockConfig, "TEST", 0x20, "scope");
            int hash1 = name.hashCode();
            int hash2 = name.hashCode();
    
            assertEquals(hash1, hash2);
        }
    
        @Test
        void hashCode_withSameValues_shouldBeEqual() {
            Name name1 = new Name(mockConfig, "TEST", 0x20, "scope");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/fess/util/PrunedTagTest.java

            tag2.setId("test");
            tag2.setCss("highlight");
    
            // Equal objects must have equal hash codes
            assertEquals(tag1.hashCode(), tag2.hashCode());
    
            // Hash code should be consistent
            int hash1 = tag1.hashCode();
            int hash2 = tag1.hashCode();
            assertEquals(hash1, hash2);
        }
    
        public void test_setters() {
            PrunedTag tag = new PrunedTag("div");
    
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 12 07:34:10 UTC 2025
    - 21K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/hash/HashingTest.java

        HashCode hash31 = HashCode.fromInt(31);
        HashCode hash32 = HashCode.fromInt(32);
        assertEquals(hash32, Hashing.combineUnordered(ImmutableList.of(hash32)));
        assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32)));
        assertEquals(
            HashCode.fromInt(96), Hashing.combineUnordered(ImmutableList.of(hash32, hash32, hash32)));
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashingTest.java

        HashCode hash31 = HashCode.fromInt(31);
        HashCode hash32 = HashCode.fromInt(32);
        assertEquals(hash32, Hashing.combineUnordered(ImmutableList.of(hash32)));
        assertEquals(HashCode.fromInt(64), Hashing.combineUnordered(ImmutableList.of(hash32, hash32)));
        assertEquals(
            HashCode.fromInt(96), Hashing.combineUnordered(ImmutableList.of(hash32, hash32, hash32)));
        assertEquals(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (2)
  10. src/test/java/org/codelibs/fess/helper/DocumentHelperTest.java

            String hash = "01010101010101010101010101010101";
            String value = "$H4sIAAAAAAAA_zMwNMALAXC7sg0gAAAA";
            assertEquals(value, documentHelper.encodeSimilarDocHash(hash));
            hash = "00101010010010100100101010001010";
            value = "$H4sIAAAAAAAA_zMwMARDCELQQApMAgAi5-3LIAAAAA";
            assertEquals(value, documentHelper.encodeSimilarDocHash(hash));
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 10 13:41:04 UTC 2025
    - 13K bytes
    - Viewed (0)
Back to top