Home
last modified time | relevance | path

Searched refs:knownOutput (Results 1 – 2 of 2) sorted by relevance

/external/guava/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java177 String knownOutput = "8cbf764cbe2e4623d99a41354adfd390"; in testEmptyInputs() local
181 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs()
182 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).newHasher().hash().toString()); in testEmptyInputs()
186 String knownOutput = "8cbf764cbe2e4623d99a41354adfd390"; in testEmptyInputs_mixedAlgorithms() local
190 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs_mixedAlgorithms()
191 assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).newHasher().hash().toString()); in testEmptyInputs_mixedAlgorithms()
195 String knownOutput = "9753980fe94daa8ecaa82216519393a9"; in testKnownInputs() local
201 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testKnownInputs()
202 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()); in testKnownInputs()
203 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString()); in testKnownInputs()
[all …]
/external/guava/android/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java177 String knownOutput = "8cbf764cbe2e4623d99a41354adfd390"; in testEmptyInputs() local
181 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs()
182 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).newHasher().hash().toString()); in testEmptyInputs()
186 String knownOutput = "8cbf764cbe2e4623d99a41354adfd390"; in testEmptyInputs_mixedAlgorithms() local
190 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testEmptyInputs_mixedAlgorithms()
191 assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).newHasher().hash().toString()); in testEmptyInputs_mixedAlgorithms()
195 String knownOutput = "9753980fe94daa8ecaa82216519393a9"; in testKnownInputs() local
201 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal()).toString()); in testKnownInputs()
202 assertEquals(knownOutput, HashCode.fromBytes(mac.doFinal(input.getBytes(UTF_8))).toString()); in testKnownInputs()
203 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString()); in testKnownInputs()
[all …]