- Sort Score
- Num 10 results
- Language All
Results 41 - 50 of 688 for ghash (0.02 seconds)
-
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; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 10 01:47:55 GMT 2025 - 15K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java
* limitations under the License. */ package com.google.common.hash; import static com.google.common.hash.Hashing.md5; import static com.google.common.hash.Hashing.sha1; import static com.google.common.hash.Hashing.sha256; import static com.google.common.hash.Hashing.sha384; import static com.google.common.hash.Hashing.sha512; import static com.google.common.truth.Truth.assertThat;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 4.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/AbstractStreamingHasherTest.java
new Sink(4).putUnencodedChars(s).hash(), new Sink(4).putBytes(s.getBytes(UTF_16LE)).hash()); assertEquals( new Sink(4).putUnencodedChars(s).hash(), new Sink(4).putString(s, UTF_16LE).hash()); } } public void testFloat() { Sink sink = new Sink(4); sink.putFloat(Float.intBitsToFloat(0x04030201)); HashCode unused = sink.hash(); sink.assertInvariants(4);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 8.6K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/NtlmPasswordAuthenticationTest.java
void testNTOWFv1() { byte[] hash = NtlmPasswordAuthentication.nTOWFv1("password"); assertNotNull(hash); assertEquals(16, hash.length); } // Test nTOWFv2 @Test void testNTOWFv2() { byte[] hash = NtlmPasswordAuthentication.nTOWFv2("DOMAIN", "user", "password"); assertNotNull(hash); assertEquals(16, hash.length); } // Test unescape method
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 9.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashFunctionEnum.java
*/ package com.google.common.hash; import static com.google.common.hash.Hashing.adler32; import static com.google.common.hash.Hashing.crc32; import static com.google.common.hash.Hashing.farmHashFingerprint64; import static com.google.common.hash.Hashing.goodFastHash; import static com.google.common.hash.Hashing.md5; import static com.google.common.hash.Hashing.murmur3_128;
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 2.4K bytes - Click Count (0) -
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; }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jul 10 01:47:55 GMT 2025 - 14.5K bytes - Click Count (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
this.hashAlgorithm = "sha1" this.hash = pin.substring("sha1/".length).decodeBase64() ?: throw IllegalArgumentException("Invalid pin hash: $pin") } pin.startsWith("sha256/") -> { this.hashAlgorithm = "sha256" this.hash = pin.substring("sha256/".length).decodeBase64() ?: throw IllegalArgumentException("Invalid pin hash: $pin") } else -> {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 14.2K bytes - Click Count (1) -
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);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 2.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); } assertThat(hash.toString()).isEqualTo(expectedHashCode.toString); assertSideEffectFree(hash); assertReadableBytes(hash); } private static void assertSideEffectFree(HashCode hash) { byte[] original = hash.asBytes(); byte[] mutated = hash.asBytes(); mutated[0]++; assertThat(hash.asBytes()).isEqualTo(original); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/hash/HashCodeTest.java
assertEquals(expectedHashCode.asLong.longValue(), hash.asLong()); } assertThat(hash.toString()).isEqualTo(expectedHashCode.toString); assertSideEffectFree(hash); assertReadableBytes(hash); } private static void assertSideEffectFree(HashCode hash) { byte[] original = hash.asBytes(); byte[] mutated = hash.asBytes(); mutated[0]++; assertThat(hash.asBytes()).isEqualTo(original); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 19 18:53:45 GMT 2026 - 13.2K bytes - Click Count (0)