Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 354 for rhash (0.01 sec)

  1. compat/maven-compat/src/main/java/org/apache/maven/artifact/resolver/filter/TypeArtifactFilter.java

        @Override
        public boolean include(Artifact artifact) {
            return type.equals(artifact.getType());
        }
    
        @Override
        public int hashCode() {
            int hash = 17;
            hash = hash * 31 + type.hashCode();
            return hash;
        }
    
        @Override
        public boolean equals(Object obj) {
            if (this == obj) {
                return true;
            }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/base/Equivalence.java

       *       y}, if {@code equivalent(x, y)}, then {@code hash(x) == hash(y)}. It is <i>not</i>
       *       necessary that the hash be distributable across <i>inequivalence</i>. If {@code
       *       equivalence(x, y)} is false, {@code hash(x) == hash(y)} may still be true.
       *   <li>{@code hash(null)} is {@code 0}.
       * </ul>
       */
      public final int hash(@Nullable T t) {
        if (t == null) {
          return 0;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 10 01:47:55 UTC 2025
    - 14.5K bytes
    - Viewed (0)
  3. src/test/java/jcifs/ntlmssp/av/AvChannelBindingsTest.java

            assertArrayEquals(testHash, avChannelBindings.getRaw(), "Value should match the provided hash");
        }
    
        /**
         * Test that the constructor handles a null channel binding hash.
         */
        @Test
        void testConstructorWithNullHash() {
            AvChannelBindings avChannelBindings = new AvChannelBindings(null);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  4. src/test/java/jcifs/internal/smb2/nego/PreauthIntegrityNegotiateContextTest.java

            buffer = new byte[BUFFER_SIZE];
        }
    
        @Nested
        @DisplayName("Constructor Tests")
        class ConstructorTests {
    
            @Test
            @DisplayName("Should create instance with Configuration, hash algorithms and salt")
            void testConstructorWithConfigHashAlgosAndSalt() {
                int[] hashAlgos = { PreauthIntegrityNegotiateContext.HASH_ALGO_SHA512 };
                byte[] salt = { 0x01, 0x02, 0x03, 0x04 };
    
    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/src/com/google/common/base/PairwiseEquivalence.java

          }
        }
    
        return !iteratorA.hasNext() && !iteratorB.hasNext();
      }
    
      @Override
      protected int doHash(Iterable<T> iterable) {
        int hash = 78721;
        for (T element : iterable) {
          hash = hash * 24943 + elementEquivalence.hash(element);
        }
        return hash;
      }
    
      @Override
      public boolean equals(@Nullable Object obj) {
        if (obj instanceof PairwiseEquivalence) {
          @SuppressWarnings("unchecked")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jun 04 13:03:16 UTC 2025
    - 2.4K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java

    package jcifs.smb;
    
    import org.bouncycastle.util.encoders.Hex;
    
    /**
     * Authenticator directly specifing the user's NT hash
     *
     * @author mbechler
     *
     */
    public class NtlmNtHashAuthenticator extends NtlmPasswordAuthenticator {
    
        private static final long serialVersionUID = 4328214169536360351L;
        /** The NT hash for authentication */
        private final byte[] ntHash;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 2.6K bytes
    - Viewed (0)
  7. compat/maven-compat/src/main/java/org/apache/maven/project/artifact/DefaultMavenMetadataCache.java

                this.repositories.addAll(remoteRepositories);
    
                int hash = 17;
                hash = hash * 31 + artifactHashCode(artifact);
                hash = hash * 31 + (resolveManagedVersions ? 1 : 2);
                hash = hash * 31 + repositoriesHashCode(repositories);
                this.hashCode = hash;
            }
    
            @Override
            public int hashCode() {
                return hashCode;
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  8. src/test/java/jcifs/internal/smb2/nego/NegotiateContextResponseTest.java

                assertEquals(context.size(), encodedSize);
                assertEquals(1, buffer[0]); // hash algo count (little endian)
                assertEquals(0, buffer[1]);
                assertEquals(8, buffer[2]); // salt length (little endian)
                assertEquals(0, buffer[3]);
                assertEquals(1, buffer[4]); // SHA512 hash algo (little endian)
                assertEquals(0, buffer[5]);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 19.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/NtlmUtilTest.java

            String password = "password";
            // Known NT hash for "password" (UTF-16LE MD4)
            // This is a well-known test vector: password -> 8846F7EAEE8FB117AD06BDD830B7586C
            byte[] expected = hex("8846F7EAEE8FB117AD06BDD830B7586C");
    
            // Act
            byte[] actual = NtlmUtil.getNTHash(password);
    
            // Assert
            assertArrayEquals(expected, actual, "NT hash must match known test vector");
        }
    
        @Test
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 12K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/RelationshipTester.java

            itemInfo,
            relatedInfo,
            equivalence.equivalent(item, related));
    
        int itemHash = equivalence.hash(item);
        int relatedHash = equivalence.hash(related);
        assertWithTemplate(
            "the $HASH ("
                + itemHash
                + ") of $ITEM must be equal to the $HASH ("
                + relatedHash
                + ") of $OTHER",
            itemInfo,
            relatedInfo,
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 5.9K bytes
    - Viewed (0)
Back to top