Searched refs:MD5_KEY (Results 1 – 2 of 2) sorted by relevance
/external/guava/guava-tests/test/com/google/common/hash/ |
D | MacHashFunctionTest.java | 44 private static final SecretKey MD5_KEY = field in MacHashFunctionTest 56 .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY)) 64 new NullPointerTester().setDefault(String.class, "HmacMD5").setDefault(Key.class, MD5_KEY); in testNulls() 66 tester.testAllPublicInstanceMethods(new MacHashFunction("HmacMD5", MD5_KEY, "toString")); in testNulls() 85 Hashing.hmacMd5(MD5_KEY); in testNoProviders() 180 mac.init(MD5_KEY); in testEmptyInputs() 182 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).newHasher().hash().toString()); in testEmptyInputs() 199 mac.init(MD5_KEY); in testKnownInputs() 203 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString()); in testKnownInputs() 204 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashBytes(input.getBytes(UTF_8)).toString()); in testKnownInputs() [all …]
|
/external/guava/android/guava-tests/test/com/google/common/hash/ |
D | MacHashFunctionTest.java | 44 private static final SecretKey MD5_KEY = field in MacHashFunctionTest 56 .put("HmacMD5", MD5_KEY, Hashing.hmacMd5(MD5_KEY)) 64 new NullPointerTester().setDefault(String.class, "HmacMD5").setDefault(Key.class, MD5_KEY); in testNulls() 66 tester.testAllPublicInstanceMethods(new MacHashFunction("HmacMD5", MD5_KEY, "toString")); in testNulls() 85 Hashing.hmacMd5(MD5_KEY); in testNoProviders() 180 mac.init(MD5_KEY); in testEmptyInputs() 182 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).newHasher().hash().toString()); in testEmptyInputs() 199 mac.init(MD5_KEY); in testKnownInputs() 203 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashString(input, UTF_8).toString()); in testKnownInputs() 204 assertEquals(knownOutput, Hashing.hmacMd5(MD5_KEY).hashBytes(input.getBytes(UTF_8)).toString()); in testKnownInputs() [all …]
|