Searched refs:hashFunc (Results 1 – 4 of 4) sorted by relevance
/external/guava/guava-tests/test/com/google/common/hash/ |
D | MacHashFunctionTest.java | 74 HashFunction hashFunc = cell.getValue(); in testHashing() local 75 assertMacHashing(HashTestUtils.ascii(stringToTest), algorithm, key, hashFunc); in testHashing() local 278 byte[] input, String algorithm, SecretKey key, HashFunction hashFunc) throws Exception { in assertMacHashing() argument 283 assertEquals(HashCode.fromBytes(mac.doFinal()), hashFunc.hashBytes(input)); in assertMacHashing() 284 assertEquals(HashCode.fromBytes(mac.doFinal(input)), hashFunc.hashBytes(input)); in assertMacHashing() 403 private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) { in checkHmac() argument 404 assertEquals(HashCode.fromString(expected), hashFunc.hashBytes(data)); in checkHmac()
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | MacHashFunctionTest.java | 74 HashFunction hashFunc = cell.getValue(); in testHashing() local 75 assertMacHashing(HashTestUtils.ascii(stringToTest), algorithm, key, hashFunc); in testHashing() local 278 byte[] input, String algorithm, SecretKey key, HashFunction hashFunc) throws Exception { in assertMacHashing() argument 283 assertEquals(HashCode.fromBytes(mac.doFinal()), hashFunc.hashBytes(input)); in assertMacHashing() 284 assertEquals(HashCode.fromBytes(mac.doFinal(input)), hashFunc.hashBytes(input)); in assertMacHashing() 403 private static void checkHmac(String expected, HashFunction hashFunc, byte[] data) { in checkHmac() argument 404 assertEquals(HashCode.fromString(expected), hashFunc.hashBytes(data)); in checkHmac()
|
/external/boringssl/src/util/fipstools/inject_hash/ |
D | inject_hash.go | 206 hashFunc := sha512.New 208 hashFunc = sha256.New 210 mac := hmac.New(hashFunc, zeroKey[:])
|
/external/boringssl/src/ssl/test/runner/ |
D | prf.go | 68 func prf12(hashFunc func() hash.Hash) func(result, secret, label, seed []byte) { 74 pHash(result, secret, labelAndSeed, hashFunc)
|