/external/guava/guava/src/com/google/common/hash/ |
H A D | AbstractStreamingHashFunction.java | 15 package com.google.common.hash; 28 * {@link Hasher#hash}. 37 return newHasher().putString(input).hash(); 41 return newHasher().putString(input, charset).hash(); 45 return newHasher().putLong(input).hash(); 49 return newHasher().putBytes(input).hash(); 53 return newHasher().putBytes(input, off, len).hash(); 70 /** Buffer via which we pass data to the hash algorithm (the implementor) */ 220 public final HashCode hash() { method in class:AbstractStreamingHashFunction.AbstractStreamingHasher
|
/external/bouncycastle/bcpkix/src/main/java/org/bouncycastle/cms/ |
H A D | SignerInfoGenerator.java | 258 private Map getBaseParameters(ASN1ObjectIdentifier contentType, AlgorithmIdentifier digAlgId, byte[] hash) argument 268 param.put(CMSAttributeTableGenerator.DIGEST, Arrays.clone(hash));
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/encodings/ |
H A D | OAEPEncoding.java | 37 Digest hash) 39 this(cipher, hash, null); 44 Digest hash, 47 this(cipher, hash, hash, encodingParams); 52 Digest hash, 58 this.defHash = new byte[hash.getDigestSize()]; 60 hash.reset(); 64 hash.update(encodingParams, 0, encodingParams.length); 67 hash 35 OAEPEncoding( AsymmetricBlockCipher cipher, Digest hash) argument 42 OAEPEncoding( AsymmetricBlockCipher cipher, Digest hash, byte[] encodingParams) argument 50 OAEPEncoding( AsymmetricBlockCipher cipher, Digest hash, Digest mgf1Hash, byte[] encodingParams) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/crypto/generators/ |
H A D | DSAParametersGenerator.java | 140 hash(digest, seed, part1); 143 hash(digest, part2, part2); 168 hash(digest, offset, part1); 173 hash(digest, offset, part1); 248 hash(d, seed, output); 279 hash(d, offset, output); 357 hash(d, U, w); 369 private static void hash(Digest d, byte[] input, byte[] output) method in class:DSAParametersGenerator
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/asymmetric/rsa/ |
H A D | DigestSignatureSpi.java | 137 byte[] hash = new byte[digest.getDigestSize()]; 139 digest.doFinal(hash, 0); 143 byte[] bytes = derEncode(hash); 161 byte[] hash = new byte[digest.getDigestSize()]; 163 digest.doFinal(hash, 0); 172 expected = derEncode(hash); 191 int sigOffset = sig.length - hash.length - 2; 192 int expectedOffset = expected.length - hash.length - 2; 197 for (int i = 0; i < hash.length; i++) 199 if (sig[sigOffset + i] != expected[expectedOffset + i]) // check hash 251 derEncode( byte[] hash) argument [all...] |
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/jcajce/provider/symmetric/util/ |
H A D | PBE.java | 61 int hash) 67 switch (hash) 90 switch (hash) 131 switch (hash) 280 int hash, 284 PBEParametersGenerator generator = makePBEGenerator(type, hash); 318 int hash, 321 PBEParametersGenerator generator = makePBEGenerator(type, hash); 59 makePBEGenerator( int type, int hash) argument 277 makePBEParameters( PBEKeySpec keySpec, int type, int hash, int keySize, int ivSize) argument 315 makePBEMacParameters( PBEKeySpec keySpec, int type, int hash, int keySize) argument
|
/external/chromium_org/base/files/ |
H A D | file_path.h | 453 // Provide a hash function so that hash_sets and maps can contain FilePath 459 struct hash<base::FilePath> { struct in namespace:BASE_HASH_NAMESPACE 461 return hash<base::FilePath::StringType>()(f.value());
|
/external/chromium_org/base/ |
H A D | sha1_portable.cc | 23 // while(there is data to hash) 201 char hash[SecureHashAlgorithm::kDigestSizeBytes]; local 203 str.length(), reinterpret_cast<unsigned char*>(hash)); 204 return std::string(hash, SecureHashAlgorithm::kDigestSizeBytes); 208 unsigned char* hash) { 213 memcpy(hash, sha.Digest(), SecureHashAlgorithm::kDigestSizeBytes); 207 SHA1HashBytes(const unsigned char* data, size_t len, unsigned char* hash) argument
|
/external/chromium_org/cc/trees/ |
H A D | layer_sorter.h | 24 struct hash<cc::GraphEdge*> { struct in namespace:BASE_HASH_NAMESPACE 26 return hash<size_t>()(reinterpret_cast<size_t>(ptr));
|
/external/chromium_org/chrome/browser/extensions/api/image_writer_private/ |
H A D | image_writer_private_api.cc | 35 std::string hash; local 37 hash = *params->options->image_hash; 43 hash, local
|
H A D | operation_manager.cc | 64 const std::string& hash, 83 hash, 61 StartWriteFromUrl( const ExtensionId& extension_id, GURL url, const std::string& hash, const std::string& device_path, const Operation::StartWriteCallback& callback) argument
|
H A D | write_from_url_operation_unittest.cc | 37 const std::string& hash, 43 hash, 97 const std::string& hash) { 103 hash, 33 OperationForTest(base::WeakPtr<OperationManager> manager_, const ExtensionId& extension_id, net::URLRequestContextGetter* request_context, GURL url, const std::string& hash, const std::string& storage_unit_id) argument 96 CreateOperation(const GURL& url, const std::string& hash) argument
|
/external/chromium_org/chrome/browser/metrics/variations/ |
H A D | variations_seed_store_unittest.cc | 67 std::string* hash) { 69 if (hash != NULL) { 71 *hash = base::HexEncode(sha1.data(), sha1.size()); 100 // Check that loading a seed without a hash pref set works correctly. 109 // Check that loading a seed with the correct hash works. 66 SerializeSeedBase64(const variations::VariationsSeed& seed, std::string* hash) argument
|
/external/chromium_org/chrome/browser/net/ |
H A D | network_stats_unittest.cc | 40 const string& hash, 43 token->mutable_hash()->assign(hash); 39 CreateToken(uint64 timestamp_micros, const string& hash, ProbePacket_Token* token) argument
|
/external/chromium_org/chrome/browser/spellchecker/ |
H A D | feedback.cc | 32 Misspelling* Feedback::GetMisspelling(uint32 hash) { argument 33 HashMisspellingMap::iterator misspelling_it = misspellings_.find(hash); 105 text_[misspelling.GetMisspelledString()].erase(misspelling.hash); 112 bool Feedback::HasMisspelling(uint32 hash) const { 113 return !!misspellings_.count(hash); 119 misspellings_.find(misspelling.hash); 122 text_[existing_misspelling.GetMisspelledString()].erase(misspelling.hash); 128 renderer_hashes.erase(misspelling.hash); 133 misspellings_[misspelling.hash] = misspelling; 134 text_[misspelling.GetMisspelledString()].insert(misspelling.hash); [all...] |
H A D | feedback_unittest.cc | 33 void AddMisspelling(int renderer_process_id, uint32 hash) { argument 35 misspelling.hash = hash; 48 EXPECT_EQ(kMisspellingHash, result->hash); 93 EXPECT_EQ(kMisspellingHash, renderer_with_misspellings[0].hash); 168 EXPECT_NE(result[0].hash, result[1].hash); 169 EXPECT_TRUE(result[0].hash == kMisspellingHash || 170 result[0].hash == kMisspellingHash + 1); 171 EXPECT_TRUE(result[1].hash 194 uint32 hash = kMisspellingHash; local [all...] |
/external/chromium_org/chrome/browser/sync_file_system/drive_backend/ |
H A D | metadata_database_index.h | 33 template<> struct hash<sync_file_system::drive_backend::ParentIDAndTitle> { struct in namespace:BASE_HASH_NAMESPACE 36 return base::HashInts64(v.parent_id, hash<std::string>()(v.title));
|
/external/chromium_org/chrome/installer/util/ |
H A D | auto_launch_util.cc | 50 uint8 hash[16]; local 51 crypto::SHA256HashString(input, hash, sizeof(hash)); 52 std::string hash_string = base::HexEncode(hash, sizeof(hash));
|
/external/chromium_org/components/component_updater/ |
H A D | component_unpacker.cc | 174 // the public key hash matches the expected hash. If they do we fully 176 uint8_t hash[32] = {}; local 179 sha256->Finish(hash, arraysize(hash)); 181 if (!std::equal(pk_hash_.begin(), pk_hash_.end(), hash)) {
|
/external/chromium_org/components/metrics/ |
H A D | persisted_logs.h | 85 return list_[staged_log_index_].hash; 125 // The SHA1 hash of log, stored to catch errors from memory corruption. 126 std::string hash; member in struct:metrics::PersistedLogs::LogHashPair
|
/external/chromium_org/content/child/npapi/ |
H A D | np_channel_base.h | 28 struct hash<NPObject*> { struct in namespace:BASE_HASH_NAMESPACE 30 return hash<size_t>()(reinterpret_cast<size_t>(ptr)); 35 struct hash<struct _NPP*> { struct in namespace:BASE_HASH_NAMESPACE 37 return hash<size_t>()(reinterpret_cast<size_t>(ptr));
|
/external/chromium_org/courgette/ |
H A D | difference_estimator.cc | 26 size_t hash = ((hash1 * 17 + hash2 * 37) + (hash1 >> 17)) ^ (hash2 >> 23); local 27 return hash; 46 size_t hash = HashTuple(p); local 47 hashes_.insert(hash); 103 size_t hash = HashTuple(p); local 104 if (base->hashes_.find(hash) == base->hashes_.end()) {
|
/external/chromium_org/crypto/ |
H A D | hmac_win.cc | 70 // Compute the inner hash. 80 // Compute the outer hash. 108 // Only SHA-1 and SHA-256 hash algorithms are supported now. 189 ScopedHCRYPTHASH hash; local 191 hash.receive())) 197 if (!CryptSetHashParam(hash, HP_HMAC_INFO, 201 if (!CryptHashData(hash, reinterpret_cast<const BYTE*>(data.data()), 206 return !!CryptGetHashParam(hash, HP_HASHVAL, digest, &sha1_size, 0);
|
/external/chromium_org/media/filters/ |
H A D | audio_file_reader_unittest.cc | 62 // On the first pass save the MD5 hash of each packet, on subsequent 83 const char* hash, 98 ReadAndVerify(hash, trimmed_frames); 82 RunTest(const char* fn, const char* hash, int channels, int sample_rate, base::TimeDelta duration, int frames, int trimmed_frames) argument
|
/external/chromium_org/net/disk_cache/blockfile/ |
H A D | storage_block-inl.h | 10 #include "base/hash.h" 106 uint32 hash = CalculateHash(); local 107 return (!data_->self_hash || data_->self_hash == hash);
|