Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 745 for hashed (0.24 sec)

  1. subprojects/core/src/test/groovy/org/gradle/api/internal/changedetection/state/CachingFileHasherTest.groovy

            hasher = new CachingFileHasher(target, cacheAccess, new StringInterner(), timeStampInspector, "fileHashes", fileSystem, 1000, statisticsCollector)
        }
    
        def "hashes file when hash not cached"() {
            def stat = fileSystem.stat(file)
    
            when:
            def result = hasher.hash(file)
    
            then:
            result == hash
    
            and:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jan 10 13:47:15 UTC 2023
    - 6.3K bytes
    - Viewed (0)
  2. src/vendor/golang.org/x/crypto/sha3/hashes.go

    // and SHAKE hash functions, as well as utility functions for hashing
    // bytes.
    
    import (
    	"hash"
    )
    
    // New224 creates a new SHA3-224 hash.
    // Its generic security strength is 224 bits against preimage attacks,
    // and 112 bits against collision attacks.
    func New224() hash.Hash {
    	return new224()
    }
    
    // New256 creates a new SHA3-256 hash.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 16:19:04 UTC 2024
    - 2.7K bytes
    - Viewed (0)
  3. pkg/util/hash/hash.go

    limitations under the License.
    */
    
    package hash
    
    import (
    	"fmt"
    	"hash"
    
    	"k8s.io/apimachinery/pkg/util/dump"
    )
    
    // DeepHashObject writes specified object to hash using the spew library
    // which follows pointers and prints actual values of the nested objects
    // ensuring the hash does not change when a pointer changes.
    func DeepHashObject(hasher hash.Hash, objectToWrite interface{}) {
    	hasher.Reset()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Mar 27 01:24:22 UTC 2023
    - 998 bytes
    - Viewed (0)
  4. cmd/hasher.go

    	"encoding/hex"
    
    	"github.com/minio/minio/internal/hash/sha256"
    )
    
    // getSHA256Hash returns SHA-256 hash in hex encoding of given data.
    func getSHA256Hash(data []byte) string {
    	return hex.EncodeToString(getSHA256Sum(data))
    }
    
    // getSHA256Hash returns SHA-256 sum of given data.
    func getSHA256Sum(data []byte) []byte {
    	hash := sha256.New()
    	hash.Write(data)
    	return hash.Sum(nil)
    }
    
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 27 13:00:19 UTC 2022
    - 1.4K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/ConfigurableClassLoaderHierarchyHasher.java

                if (knownId != null) {
                    hasher.putBytes(knownId);
                    return false;
                }
                if (cl instanceof CachingClassLoader || cl instanceof MultiParentClassLoader) {
                    return true;
                }
                HashCode hash = classLoaderFactory.getClassLoaderClasspathHash(cl);
                if (hash != null) {
                    hasher.putHash(hash);
                    return true;
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:48:02 UTC 2023
    - 2.9K bytes
    - Viewed (0)
  6. platforms/core-execution/hashing/src/test/groovy/org/gradle/internal/hash/HashingTest.groovy

            then:
            hash2 == hash1
        }
    
        def 'hasher works without calling final hash method'() {
            given:
            def value = ('a'..'z').join()
    
            when:
            def hasher1 = Hashing.newHasher()
            hasher1.putString(value)
            def hash = hasher1.hash()
    
            and:
            def hasher2 = Hashing.newHasher()
            hasher2.putString(value)
            // no call to hasher2.hash()
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HasherExtensions.java

            hasher.putInt(array.length);
            for (char c : array) {
                hasher.putInt(c);
            }
        }
    
        public static void putDoubles(Hasher hasher, double[] array) {
            hasher.putInt(array.length);
            for (double d : array) {
                hasher.putDouble(d);
            }
        }
    
        public static void putFloats(Hasher hasher, float[] array) {
            hasher.putInt(array.length);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 11 20:22:02 UTC 2024
    - 2K bytes
    - Viewed (0)
  8. src/runtime/hash64.go

    	}
    
    	return mix(m5^s, mix(a^hashkey[1], b^seed))
    }
    
    func memhash32Fallback(p unsafe.Pointer, seed uintptr) uintptr {
    	a := r4(p)
    	return mix(m5^4, mix(a^hashkey[1], a^seed^hashkey[0]))
    }
    
    func memhash64Fallback(p unsafe.Pointer, seed uintptr) uintptr {
    	a := r8(p)
    	return mix(m5^8, mix(a^hashkey[1], a^seed^hashkey[0]))
    }
    
    func mix(a, b uintptr) uintptr {
    	hi, lo := math.Mul64(uint64(a), uint64(b))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 19 17:39:28 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  9. platforms/core-execution/hashing/src/main/java/org/gradle/internal/hash/HashingOutputStream.java

            hasher.putBytes(bytes, off, len);
            out.write(bytes, off, len);
        }
    
        public HashCode hash() {
            return hasher.hash();
        }
    
        @Override
        public void close() throws IOException {
            out.close();
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:43:29 UTC 2023
    - 1.6K bytes
    - Viewed (0)
  10. platforms/jvm/normalization-java/src/main/java/org/gradle/api/internal/changedetection/state/RuntimeClasspathResourceHasher.java

    import org.gradle.internal.fingerprint.hashing.ZipEntryContext;
    import org.gradle.internal.hash.HashCode;
    import org.gradle.internal.hash.Hasher;
    import org.gradle.internal.hash.Hashing;
    
    import javax.annotation.Nullable;
    import java.io.IOException;
    
    /**
     * Hashes contents of resources files and {@link ZipEntry}s) in runtime classpath entries.
     *
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 15:09:49 UTC 2023
    - 1.8K bytes
    - Viewed (0)
Back to top