Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 123 for Masing (0.18 sec)

  1. android/guava/src/com/google/common/hash/Hashing.java

       * specific length.
       *
       * <p>For example, if you need 1024-bit hash codes, you could join two {@link Hashing#sha512} hash
       * functions together: {@code Hashing.concatenating(Hashing.sha512(), Hashing.sha512())}.
       *
       * @since 19.0
       */
      public static HashFunction concatenating(
          HashFunction first, HashFunction second, HashFunction... rest) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Apr 09 00:37:15 GMT 2024
    - 29.2K bytes
    - Viewed (0)
  2. src/main/java/jcifs/smb1/util/MD4.java

            // padding is alwas binary 1 followed by binary 0s
            byte[] tail = new byte[padLen + 8];
            tail[0] = (byte)0x80;
    
            // append length before final transform:
            // save number of bits, casting the long to an array of 8 bytes
            // save low-order byte first.
            for (int i = 0; i < 8; i++)
                tail[padLen + i] = (byte)((count * 8) >>> (8 * i));
    
            engineUpdate(tail, 0, tail.length);
    
    Java
    - Registered: Sun May 05 00:10:10 GMT 2024
    - Last Modified: Fri Mar 22 20:39:42 GMT 2019
    - 9.3K bytes
    - Viewed (0)
  3. android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java

     * {@link PriorityQueue} and supplies blocking retrieval operations. While this queue is logically
     * unbounded, attempted additions may fail due to resource exhaustion (causing {@code
     * OutOfMemoryError}). This class does not permit {@code null} elements. A priority queue relying on
     * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 19 19:24:36 GMT 2023
    - 19.5K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Iterators.java

       * a view of the array; subsequent changes to the array will be reflected in the iterator.
       *
       * <p><b>Note:</b> It is often preferable to represent your data using a collection type, for
       * example using {@link Arrays#asList(Object[])}, making this method unnecessary.
       *
       * <p>The {@code Iterable} equivalent of this method is either {@link Arrays#asList(Object[])},
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Apr 30 18:43:01 GMT 2024
    - 51.1K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/ImmutableBiMap.java

        return CollectCollectors.toImmutableBiMap(keyFunction, valueFunction);
      }
    
      /**
       * Returns the empty bimap.
       *
       * <p><b>Performance note:</b> the instance returned is a singleton.
       */
      // Casting to any type is safe because the set will never hold any elements.
      @SuppressWarnings("unchecked")
      public static <K, V> ImmutableBiMap<K, V> of() {
        return (ImmutableBiMap<K, V>) RegularImmutableBiMap.EMPTY;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Tue Oct 31 16:03:42 GMT 2023
    - 22.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/hash/HashFunctionEnum.java

     */
    enum HashFunctionEnum {
      ADLER32(Hashing.adler32()),
      CRC32(Hashing.crc32()),
      GOOD_FAST_HASH_32(Hashing.goodFastHash(32)),
      GOOD_FAST_HASH_64(Hashing.goodFastHash(64)),
      GOOD_FAST_HASH_128(Hashing.goodFastHash(128)),
      GOOD_FAST_HASH_256(Hashing.goodFastHash(256)),
      MD5(Hashing.md5()),
      MURMUR3_128(Hashing.murmur3_128()),
      MURMUR3_32(Hashing.murmur3_32()),
      MURMUR3_32_FIXED(Hashing.murmur3_32_fixed()),
      SHA1(Hashing.sha1()),
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 08 13:56:22 GMT 2021
    - 1.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/hash/MessageDigestHashFunctionTest.java

        assertEquals("Hashing.md5()", Hashing.md5().toString());
        assertEquals("Hashing.sha1()", Hashing.sha1().toString());
        assertEquals("Hashing.sha256()", Hashing.sha256().toString());
        assertEquals("Hashing.sha512()", Hashing.sha512().toString());
      }
    
      private static void assertMessageDigestHashing(byte[] input, String algorithmName) {
        try {
          MessageDigest digest = MessageDigest.getInstance(algorithmName);
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 4.2K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/hash/MacHashFunctionTest.java

        assertEquals(
            "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(MD5_KEY).toString());
        assertEquals(
            "Hashing.hmacMd5(Key[algorithm=HmacMD5, format=RAW])", Hashing.hmacMd5(keyData).toString());
    
        assertEquals(
            "Hashing.hmacSha1(Key[algorithm=HmacSHA1, format=RAW])",
            Hashing.hmacSha1(SHA1_KEY).toString());
        assertEquals(
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 13.8K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/hash/HashingInputStreamTest.java

        verifyNoMoreInteractions(hashFunction, hasher);
      }
    
      public void testHash_hashesCorrectly() throws Exception {
        HashCode expectedHash = Hashing.md5().hashBytes(testBytes);
        HashingInputStream in = new HashingInputStream(Hashing.md5(), buffer);
    
        byte[] buf = new byte[4];
        int numOfByteRead = in.read(buf, 0, buf.length);
        assertEquals(4, numOfByteRead);
    
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 5K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/hash/HashingOutputStreamTest.java

      }
    
      public void testHash_hashesCorrectly() throws Exception {
        byte[] buf = new byte[] {'y', 'a', 'm', 's'};
        HashCode expectedHash = Hashing.md5().hashBytes(buf);
        HashingOutputStream out = new HashingOutputStream(Hashing.md5(), buffer);
    
        out.write(buf);
    
        assertEquals(expectedHash, out.hash());
      }
    
      public void testChecksForNull() throws Exception {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Fri Oct 02 16:24:50 GMT 2020
    - 3.1K bytes
    - Viewed (0)
Back to top