Home
last modified time | relevance | path

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

/external/guava/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java46 private static final SecretKey SHA1_KEY = field in MacHashFunctionTest
57 .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY))
95 mac.init(SHA1_KEY); in testMultipleUpdates()
101 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdates()
110 mac.init(SHA1_KEY); in testMultipleUpdatesDoFinal()
116 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdatesDoFinal()
189 mac.init(SHA1_KEY); in testEmptyInputs_mixedAlgorithms()
191 assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).newHasher().hash().toString()); in testEmptyInputs_mixedAlgorithms()
212 mac.init(SHA1_KEY); in testKnownInputs_mixedAlgorithms()
216 assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).hashString(input, UTF_8).toString()); in testKnownInputs_mixedAlgorithms()
[all …]
/external/guava/android/guava-tests/test/com/google/common/hash/
DMacHashFunctionTest.java46 private static final SecretKey SHA1_KEY = field in MacHashFunctionTest
57 .put("HmacSHA1", SHA1_KEY, Hashing.hmacSha1(SHA1_KEY))
95 mac.init(SHA1_KEY); in testMultipleUpdates()
101 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdates()
110 mac.init(SHA1_KEY); in testMultipleUpdatesDoFinal()
116 Hashing.hmacSha1(SHA1_KEY) in testMultipleUpdatesDoFinal()
189 mac.init(SHA1_KEY); in testEmptyInputs_mixedAlgorithms()
191 assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).newHasher().hash().toString()); in testEmptyInputs_mixedAlgorithms()
212 mac.init(SHA1_KEY); in testKnownInputs_mixedAlgorithms()
216 assertEquals(knownOutput, Hashing.hmacMd5(SHA1_KEY).hashString(input, UTF_8).toString()); in testKnownInputs_mixedAlgorithms()
[all …]