Searched refs:kSHA256DigestSize (Results 1 – 3 of 3) sorted by relevance
/external/chromium/crypto/ |
D | hmac_unittest.cc | 11 static const int kSHA256DigestSize = 32; variable 152 unsigned char calculated_hmac[kSHA256DigestSize]; in TEST() 154 EXPECT_TRUE(hmac.Sign(data, calculated_hmac, kSHA256DigestSize)); in TEST() 155 EXPECT_EQ(0, memcmp(kKnownHMACSHA256, calculated_hmac, kSHA256DigestSize)); in TEST() 199 unsigned char calculated_hmac2[kSHA256DigestSize]; in TEST() 201 EXPECT_TRUE(hmac2.Sign(message_data, calculated_hmac2, kSHA256DigestSize)); in TEST() 202 EXPECT_EQ(0, memcmp(kKnownHMACSHA256, calculated_hmac2, kSHA256DigestSize)); in TEST()
|
/external/chromium_org/crypto/ |
D | hmac_unittest.cc | 11 static const size_t kSHA256DigestSize = 32; variable 174 unsigned char calculated_hmac[kSHA256DigestSize]; in TEST() 176 EXPECT_EQ(kSHA256DigestSize, hmac.DigestLength()); in TEST() 177 EXPECT_TRUE(hmac.Sign(data, calculated_hmac, kSHA256DigestSize)); in TEST() 178 EXPECT_EQ(0, memcmp(kKnownHMACSHA256, calculated_hmac, kSHA256DigestSize)); in TEST() 231 unsigned char calculated_hmac2[kSHA256DigestSize]; in TEST() 233 EXPECT_TRUE(hmac2.Sign(message_data, calculated_hmac2, kSHA256DigestSize)); in TEST() 234 EXPECT_EQ(0, memcmp(kKnownHMACSHA256, calculated_hmac2, kSHA256DigestSize)); in TEST()
|
/external/chromium_org/chrome/browser/prefs/ |
D | pref_metrics_service.cc | 71 const size_t kSHA256DigestSize = 32; variable 116 pref_hash_seed_(kSHA256DigestSize, 0), in PrefMetricsService() 401 unsigned char digest[kSHA256DigestSize]; in GetHashedPrefValue() 403 !hmac.Sign(string_to_hash, digest, kSHA256DigestSize)) { in GetHashedPrefValue() 408 return base::HexEncode(digest, kSHA256DigestSize); in GetHashedPrefValue()
|