Home
last modified time | relevance | path

Searched refs:SHA1_LENGTH (Results 1 – 10 of 10) sorted by relevance

/external/chromium/base/
Dsha1_win.cc22 return std::string(SHA1_LENGTH, '\0'); in SHA1HashString()
29 return std::string(SHA1_LENGTH, '\0'); in SHA1HashString()
35 return std::string(SHA1_LENGTH, '\0'); in SHA1HashString()
44 return std::string(SHA1_LENGTH, '\0'); in SHA1HashString()
54 return std::string(SHA1_LENGTH, '\0'); in SHA1HashString()
57 if (hash_len != SHA1_LENGTH) { in SHA1HashString()
59 << " should be " << SHA1_LENGTH; in SHA1HashString()
60 return std::string(SHA1_LENGTH, '\0'); in SHA1HashString()
Dsha1_unittest.cc23 for (size_t i = 0; i < base::SHA1_LENGTH; i++) in TEST()
39 for (size_t i = 0; i < base::SHA1_LENGTH; i++) in TEST()
54 for (size_t i = 0; i < base::SHA1_LENGTH; i++) in TEST()
61 unsigned char output[base::SHA1_LENGTH]; in TEST()
71 for (size_t i = 0; i < base::SHA1_LENGTH; i++) in TEST()
79 unsigned char output[base::SHA1_LENGTH]; in TEST()
89 for (size_t i = 0; i < base::SHA1_LENGTH; i++) in TEST()
96 unsigned char output[base::SHA1_LENGTH]; in TEST()
106 for (size_t i = 0; i < base::SHA1_LENGTH; i++) in TEST()
Dsha1.h18 SHA1_LENGTH = 20 // Length in bytes of a SHA-1 hash. enumerator
/external/chromium/net/base/
Dx509_certificate.cc123 return memcmp(a, b, base::SHA1_LENGTH); in CompareSHA1Hashes()
868 static const uint8 kHashes[kNumHashes][base::SHA1_LENGTH] = { in IsPublicKeyBlacklisted()
886 if (memcmp(j->data, kHashes[i], base::SHA1_LENGTH) == 0) in IsPublicKeyBlacklisted()
898 DCHECK_EQ(0u, array_byte_len % base::SHA1_LENGTH); in IsSHA1HashInSortedArray()
899 const unsigned arraylen = array_byte_len / base::SHA1_LENGTH; in IsSHA1HashInSortedArray()
900 return NULL != bsearch(hash.data, array, arraylen, base::SHA1_LENGTH, in IsSHA1HashInSortedArray()
Dx509_certificate_unittest.cc35 using base::SHA1_LENGTH;
535 uint8 hash[base::SHA1_LENGTH]; in TEST()
572 EXPECT_EQ(HexEncode(nistSPKIHash, base::SHA1_LENGTH), in TEST()
573 HexEncode(verify_result.public_key_hashes[0].data, SHA1_LENGTH)); in TEST()
575 HexEncode(verify_result.public_key_hashes[1].data, SHA1_LENGTH)); in TEST()
Dtransport_security_state.cc383 hash_str.size() == base::SHA1_LENGTH) { in Deserialise()
Ddnssec_chain_verifier.cc528 digest_len = base::SHA1_LENGTH; in DigestKey()
/external/chromium/net/socket/
Ddns_cert_provenance_checker.cc118 uint8 fingerprint[SHA1_LENGTH]; in Start()
123 char fingerprint_hex[SHA1_LENGTH * 2 + 1]; in Start()
129 fingerprint_hex[SHA1_LENGTH * 2] = 0; in Start()
Dssl_client_socket_nss.cc343 hash_length = SHA1_LENGTH; in VerifyTXTRecords()
/external/chromium/chrome/common/net/
Dx509_certificate_model_nss.cc304 return HashCert(cert_handle, HASH_AlgSHA1, SHA1_LENGTH); in HashCertSHA1()