Home
last modified time | relevance | path

Searched refs:SHA256_LENGTH (Results 1 – 25 of 28) sorted by relevance

12

/external/chromium/crypto/
Dsha2_unittest.cc22 uint8 output1[crypto::SHA256_LENGTH]; in TEST()
24 for (size_t i = 0; i < crypto::SHA256_LENGTH; i++) in TEST()
48 ASSERT_EQ(crypto::SHA256_LENGTH, output1.size()); in TEST()
49 for (size_t i = 0; i < crypto::SHA256_LENGTH; i++) in TEST()
66 uint8 output2[crypto::SHA256_LENGTH]; in TEST()
68 for (size_t i = 0; i < crypto::SHA256_LENGTH; i++) in TEST()
90 uint8 output3[crypto::SHA256_LENGTH]; in TEST()
92 for (size_t i = 0; i < crypto::SHA256_LENGTH; i++) in TEST()
Dhmac_win.cc42 SHA256_End(&ctx, key0, NULL, SHA256_LENGTH); in ComputeHMACSHA256()
43 memset(key0 + SHA256_LENGTH, 0, SHA256_BLOCK_SIZE - SHA256_LENGTH); in ComputeHMACSHA256()
50 unsigned char inner_hash[SHA256_LENGTH]; in ComputeHMACSHA256()
60 SHA256_End(&ctx, inner_hash, NULL, SHA256_LENGTH); in ComputeHMACSHA256()
69 SHA256_Update(&ctx, inner_hash, SHA256_LENGTH); in ComputeHMACSHA256()
106 if (key_length < SHA256_LENGTH / 2) in Init()
Dsecure_hash_unittest.cc24 uint8 output3[crypto::SHA256_LENGTH]; in TEST()
32 for (size_t i = 0; i < crypto::SHA256_LENGTH; i++) in TEST()
Dsha2.h18 SHA256_LENGTH = 32 // length in bytes of a SHA-256 hash enumerator
Dsha2.cc20 std::string output(SHA256_LENGTH, 0); in SHA256HashString()
/external/chromium_org/crypto/
Dhmac_win.cc55 SHA256_End(&ctx, key0, NULL, SHA256_LENGTH); in ComputeHMACSHA256()
56 memset(key0 + SHA256_LENGTH, 0, SHA256_BLOCK_SIZE - SHA256_LENGTH); in ComputeHMACSHA256()
64 unsigned char inner_hash[SHA256_LENGTH]; in ComputeHMACSHA256()
74 SHA256_End(&ctx, inner_hash, NULL, SHA256_LENGTH); in ComputeHMACSHA256()
83 SHA256_Update(&ctx, inner_hash, SHA256_LENGTH); in ComputeHMACSHA256()
/external/chromium/chrome/browser/extensions/
Dconvert_user_script.cc75 char raw[crypto::SHA256_LENGTH] = {0}; in ConvertUserScriptToExtension()
77 crypto::SHA256HashString(script_name, raw, crypto::SHA256_LENGTH); in ConvertUserScriptToExtension()
78 base::Base64Encode(std::string(raw, crypto::SHA256_LENGTH), &key); in ConvertUserScriptToExtension()
Dconvert_web_app.cc49 char raw[crypto::SHA256_LENGTH] = {0}; in GenerateKey()
53 crypto::SHA256_LENGTH); in GenerateKey()
54 base::Base64Encode(std::string(raw, crypto::SHA256_LENGTH), &key); in GenerateKey()
Dextension_updater.cc790 char sha256_hash_value[crypto::SHA256_LENGTH]; in ProcessBlacklist()
791 crypto::SHA256HashString(data, sha256_hash_value, crypto::SHA256_LENGTH); in ProcessBlacklist()
793 crypto::SHA256_LENGTH); in ProcessBlacklist()
/external/chromium_org/crypto/third_party/nss/
Dchromium-blapit.h65 #define SHA256_LENGTH 32 /* bytes */ macro
Dsha512.cc468 padLen = PR_MIN(SHA256_LENGTH, maxDigestLen); in SHA256_End()
485 SHA256_End(&ctx, dest, &outLen, SHA256_LENGTH);
1313 unsigned char outBuf[SHA256_LENGTH]; in test256()
/external/chromium/crypto/third_party/nss/
Dblapit.h65 #define SHA256_LENGTH 32 /* bytes */ macro
Dsha512.cc468 padLen = PR_MIN(SHA256_LENGTH, maxDigestLen); in SHA256_End()
485 SHA256_End(&ctx, dest, &outLen, SHA256_LENGTH);
1313 unsigned char outBuf[SHA256_LENGTH]; in test256()
/external/chromium_org/net/quic/crypto/
Dchannel_id_nss.cc58 unsigned char hash_buf[SHA256_LENGTH]; in VerifyRaw()
/external/chromium_org/net/quic/test_tools/
Dcrypto_test_utils_nss.cc48 unsigned char hash_buf[SHA256_LENGTH]; in Sign()
/external/chromium/chrome/browser/safe_browsing/
Dsafe_browsing_util.cc523 DCHECK_EQ(static_cast<size_t>(crypto::SHA256_LENGTH), hash_in.size()); in StringToSBFullHash()
524 memcpy(hash_out->full_hash, hash_in.data(), crypto::SHA256_LENGTH); in StringToSBFullHash()
528 DCHECK_EQ(static_cast<size_t>(crypto::SHA256_LENGTH), sizeof(hash.full_hash)); in SBFullHashToString()
/external/chromium_org/net/third_party/nss/ssl/
Dsslsnce.c129 /* 32 */ PRUint8 srvNameHash[SHA256_LENGTH]; /* SHA256 name hash */
172 PRUint8 nameHash[SHA256_LENGTH]; /* 32 */
442 PORT_Memcpy(sce->u.ssl3.srvNameHash, snce.nameHash, SHA256_LENGTH); in CacheSrvName()
806 SHA256_LENGTH)) { in ServerSessionIDLookup()
1886 SHA256_LENGTH, pwArg); in GenerateTicketKeys()
2029 PRUint8 ticketMacKey[SHA256_LENGTH], ticketEncKey[AES_256_KEY_LENGTH]; in ssl_GetSessionTicketKeys()
2063 SHA256_LENGTH) != SECSuccess) in ssl_GetSessionTicketKeys()
2080 PORT_Memcpy(macKey, ticketMacKeyPtr, SHA256_LENGTH); in ssl_GetSessionTicketKeys()
/external/chromium/net/base/
Dtransport_security_state.cc34 char hashed[crypto::SHA256_LENGTH]; in HashHost()
282 out.size() != crypto::SHA256_LENGTH) { in ExternalStringToHashedDomain()
Ddnssec_chain_verifier.cc519 uint8 temp2[crypto::SHA256_LENGTH]; in DigestKey()
/external/chromium/net/socket/
Ddns_cert_provenance_checker.cc297 char key_data[SHA256_LENGTH]; in BuildEncryptedReport()
Dssl_client_socket_nss.cc346 hash_length = SHA256_LENGTH; in VerifyTXTRecords()
362 uint8 calculated_hash[SHA256_LENGTH]; // SHA256 is the largest. in VerifyTXTRecords()
/external/chromium_org/net/third_party/nss/patches/
Dchannelid2.patch56 unsigned char digest[SHA256_LENGTH];
Dchannelid.patch113 + unsigned char digest[SHA256_LENGTH];
/external/chromium/chrome/common/net/
Dx509_certificate_model_nss.cc300 return HashCert(cert_handle, HASH_AlgSHA256, SHA256_LENGTH); in HashCertSHA256()
/external/chromium_org/chrome/common/net/
Dx509_certificate_model_nss.cc304 return HashCert(cert_handle, HASH_AlgSHA256, SHA256_LENGTH); in HashCertSHA256()

12