Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 299 for shan (0.04 sec)

  1. okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt

          var sha1: ByteString? = null
          var sha256: ByteString? = null
    
          for (pin in pins) {
            when (pin.hashAlgorithm) {
              "sha256" -> {
                if (sha256 == null) sha256 = peerCertificate.sha256Hash()
                if (pin.hash == sha256) return // Success!
              }
              "sha1" -> {
                if (sha1 == null) sha1 = peerCertificate.sha1Hash()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 14.1K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void testSha1() {
        HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4);
        HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1());
        HashTestUtils.checkNoFunnels(Hashing.sha1());
        HashTestUtils.assertInvariants(Hashing.sha1());
        assertEquals("Hashing.sha1()", Hashing.sha1().toString());
      }
    
      public void testSha256() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 26.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/io/MultiInputStreamTest.java

      }
    
      private void joinHelper(Integer... spans) throws Exception {
        List<ByteSource> sources = new ArrayList<>();
        int start = 0;
        for (Integer span : spans) {
          sources.add(newByteSource(start, span));
          start += span;
        }
        ByteSource joined = ByteSource.concat(sources);
        assertTrue(newByteSource(0, start).contentEquals(joined));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  4. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/SingletonImmutableList.java

    import static java.util.Collections.singletonList;
    
    import java.util.List;
    
    /**
     * GWT emulated version of {@link SingletonImmutableList}.
     *
     * @author Hayward Chan
     */
    final class SingletonImmutableList<E> extends ForwardingImmutableList<E> {
      private final transient List<E> delegate;
      private final E element;
    
      SingletonImmutableList(E element) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 01 22:23:20 UTC 2025
    - 1.2K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/io/MultiInputStreamTest.java

      }
    
      private void joinHelper(Integer... spans) throws Exception {
        List<ByteSource> sources = new ArrayList<>();
        int start = 0;
        for (Integer span : spans) {
          sources.add(newByteSource(start, span));
          start += span;
        }
        ByteSource joined = ByteSource.concat(sources);
        assertTrue(newByteSource(0, start).contentEquals(joined));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 4.6K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/SingletonImmutableList.java

    import com.google.common.annotations.J2ktIncompatible;
    import com.google.common.base.Preconditions;
    import java.util.Spliterator;
    
    /**
     * Implementation of {@link ImmutableList} with exactly one element.
     *
     * @author Hayward Chan
     */
    @GwtCompatible
    @SuppressWarnings("serial") // uses writeReplace(), not default serialization
    final class SingletonImmutableList<E> extends ImmutableList<E> {
    
      final transient E element;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.3K bytes
    - Viewed (0)
  7. android/guava-tests/benchmark/com/google/common/hash/HashStringBenchmark.java

       * @see MaxCodePoint#decode
       */
      @Param({"0x80", "0x90", "0x100", "0x800", "0x10000", "0x10ffff"})
      MaxCodePoint maxCodePoint;
    
      @Param({"16384"})
      int charCount;
    
      @Param({"MURMUR3_32", "MURMUR3_128", "SHA1"})
      HashFunctionEnum hashFunctionEnum;
    
      private String[] strings;
    
      static final int SAMPLES = 0x100;
      static final int SAMPLE_MASK = 0xFF;
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 5.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/hash/Hashing.java

       *     </ul>
       */
      @Deprecated
      public static HashFunction sha1() {
        return Sha1Holder.SHA_1;
      }
    
      private static final class Sha1Holder {
        static final HashFunction SHA_1 = new MessageDigestHashFunction("SHA-1", "Hashing.sha1()");
      }
    
      /** Returns a hash function implementing the SHA-256 algorithm (256 hash bits). */
      public static HashFunction sha256() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 29.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashingTest.java

      }
    
      public void testSha1() {
        HashTestUtils.checkAvalanche(Hashing.sha1(), 100, 0.4);
        HashTestUtils.checkNo2BitCharacteristics(Hashing.sha1());
        HashTestUtils.checkNoFunnels(Hashing.sha1());
        HashTestUtils.assertInvariants(Hashing.sha1());
        assertEquals("Hashing.sha1()", Hashing.sha1().toString());
      }
    
      public void testSha256() {
    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. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/WebSocketProtocol.kt

      fun validateCloseCode(code: Int) {
        val message = closeCodeExceptionMessage(code)
        require(message == null) { message!! }
      }
    
      fun acceptHeader(key: String): String = (key + ACCEPT_MAGIC).encodeUtf8().sha1().base64()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
Back to top