Home
last modified time | relevance | path

Searched refs:hashtype (Results 1 – 20 of 20) sorted by relevance

/external/chromium_org/third_party/smhasher/src/
Dmain.cpp127 template < typename hashtype >
128 void test ( hashfunc<hashtype> hash, HashInfo * info ) in test()
130 const int hashbits = sizeof(hashtype) * 8; in test()
162 … TinySpeedTest(hashfunc<hashtype>(info->hash),sizeof(hashtype),i,info->verification,true,cycles); in test()
178 result &= DiffTest< Blob<64>, hashtype >(hash,5,1000,dumpCollisions); in test()
179 result &= DiffTest< Blob<128>, hashtype >(hash,4,1000,dumpCollisions); in test()
180 result &= DiffTest< Blob<256>, hashtype >(hash,3,1000,dumpCollisions); in test()
195 result &= DiffDistTest2<uint64_t,hashtype>(hash); in test()
209 result &= AvalancheTest< Blob< 32>, hashtype > (hash,300000); in test()
210 result &= AvalancheTest< Blob< 40>, hashtype > (hash,300000); in test()
[all …]
DKeysetTest.h27 template< typename hashtype >
30 pfHash hash, std::vector<hashtype> & hashes ) in CombinationKeygenRecurse()
40 hashtype h; in CombinationKeygenRecurse()
52 template< typename hashtype >
53 bool CombinationKeyTest ( hashfunc<hashtype> hash, int maxlen, uint32_t * blocks, int blockcount, b… in CombinationKeyTest()
59 std::vector<hashtype> hashes; in CombinationKeyTest()
63 CombinationKeygenRecurse<hashtype>(key,0,maxlen,blocks,blockcount,hash,hashes); in CombinationKeyTest()
73 result &= TestHashList<hashtype>(hashes,testColl,testDist,drawDiagram); in CombinationKeyTest()
84 template< typename hashtype >
85 …enRecurse ( pfHash hash, uint32_t * blocks, int blockcount, int k, std::vector<hashtype> & hashes ) in PermutationKeygenRecurse()
[all …]
DStats.h41 template< typename hashtype >
42 int FindCollisions ( std::vector<hashtype> & hashes, in FindCollisions()
43 HashSet<hashtype> & collisions, in FindCollisions()
68 template < class keytype, typename hashtype >
69 int PrintCollisions ( hashfunc<hashtype> hash, std::vector<keytype> & keys ) in PrintCollisions()
73 typedef std::map<hashtype,keytype> htab; in PrintCollisions()
80 hashtype h = hash(&k1,sizeof(keytype),0); in PrintCollisions()
105 template< typename hashtype >
106 double TestDistribution ( std::vector<hashtype> & hashes, bool drawDiagram ) in TestDistribution()
112 const int hashbits = sizeof(hashtype) * 8; in TestDistribution()
[all …]
DDifferentialTest.h103 template < typename keytype, typename hashtype >
104 void DiffTestRecurse ( pfHash hash, keytype & k1, keytype & k2, hashtype & h1, hashtype & h2, int s… in DiffTestRecurse()
132 template < typename keytype, typename hashtype >
136 const int hashbits = sizeof(hashtype) * 8; in DiffTest()
147 hashtype h1,h2; in DiffTest()
161 DiffTestRecurse<keytype,hashtype>(hash,k1,k2,h1,h2,0,diffbits,diffs); in DiffTest()
188 template < typename keytype, typename hashtype >
192 std::vector<hashtype> A(trials),B(trials); in DiffDistTest()
214 hashtype h2; in DiffDistTest()
245 template < typename keytype, typename hashtype >
[all …]
DAvalancheTest.h27 template < typename keytype, typename hashtype >
31 const int hashbytes = sizeof(hashtype); in calcBias()
37 hashtype A,B; in calcBias()
68 template < typename keytype, typename hashtype >
74 const int hashbytes = sizeof(hashtype); in AvalancheTest()
85 calcBias<keytype,hashtype>(hash,bins,reps,r); in AvalancheTest()
110 template< typename keytype, typename hashtype >
116 const int hashbytes = sizeof(hashtype); in BicTest()
122 hashtype h1,h2; in BicTest()
137 hashtype d = h1 ^ h2; in BicTest()
[all …]
DTypes.h47 template< typename hashtype, typename keytype >
48 struct CollisionMap : public std::map< hashtype, std::vector<keytype> >
52 template< typename hashtype >
53 struct HashSet : public std::set<hashtype>
117 template<typename hashtype>
120 typedef std::vector<hashtype> hashvec;
153 template<typename hashtype>
156 typedef HashSet<hashtype> hashset;
157 typedef CollisionMap<hashtype,ByteVec> collmap;
168 hashtype h; in operator()
DKeysetTest.cpp269 template< typename hashtype >
270 void DumpCollisionMap ( CollisionMap<hashtype,ByteVec> & cmap ) in DumpCollisionMap() argument
272 typedef CollisionMap<hashtype,ByteVec> cmap_t; in DumpCollisionMap()
276 const hashtype & hash = (*it).first; in DumpCollisionMap()
279 printbytes(&hash,sizeof(hashtype)); in DumpCollisionMap()
DBitslice.cpp53 template< typename hashtype >
54 void Bitslice ( std::vector<hashtype> & hashes, slice_vec & slices ) in Bitslice()
56 const int hashbytes = sizeof(hashtype); in Bitslice()
/external/chromium_org/third_party/yasm/source/patched-yasm/tools/genperf/
Dperfect.c119 switch(form->hashtype) in checkdup()
143 fprintf(stderr, "perfect.c: Illegal hash type %ld\n", (ub4)form->hashtype); in checkdup()
728 *alen = ((form->hashtype==INT_HT) && *smax>131072) ? in initalen()
731 if ((form->hashtype == INT_HT) && *smax < 32) in initalen()
833 if (form->hashtype == AB_HT) in findhash()
905 if ((form->hashtype != INT_HT && ++bad_perfect >= RETRY_PERFECT) || in findhash()
906 (form->hashtype == INT_HT && ++bad_perfect >= RETRY_HEX)) in findhash()
1169 form.hashtype = STRING_HT;
Dperfect.h67 } hashtype; member
Dgenperf.c172 form.hashtype = STRING_HT; in perfect_gen()
/external/ipsec-tools/src/racoon/
Dpfkey.c456 ipsecdoi2pfkey_aalg(hashtype) in ipsecdoi2pfkey_aalg() argument
457 u_int hashtype; in ipsecdoi2pfkey_aalg()
459 switch (hashtype) {
488 "Not supported hash type: %u\n", hashtype);
496 "Invalid hash type: %u\n", hashtype);
686 keylen_aalg(hashtype) in keylen_aalg() argument
687 u_int hashtype; in keylen_aalg()
691 if (hashtype == 0)
694 res = alg_ipsec_hmacdef_hashlen(hashtype);
697 "invalid hmac algorithm %u.\n", hashtype);
[all …]
Dremoteconf.h144 int hashtype; member
Dipsec_doi.c379 s->hashtype),
381 tsap->hashtype));
402 tsap->hashtype == s->hashtype &&
513 if (sa.hashtype != s->hashtype) {
521 s->hashtype),
523 sa.hashtype));
616 sa->hashtype = (u_int16_t)ntohs(d->lorv);
2822 if (sa->hashtype) {
2825 p = isakmp_set_attr_l(p, OAKLEY_ATTR_HASH_ALG, sa->hashtype);
Dnattraversal.c131 saddr2str(addr), iph1->approval->hashtype, in natt_hash_addr()
Dhandler.c1465 if (approval->hashtype != p->hashtype) { in revalidate_ph1()
Dremoteconf.c604 alg_oakley_hashdef_name(prop->hashtype)); in dump_rmconf_single()
Doakley.c389 type = iph1->approval->hashtype;
419 type = iph1->approval->hashtype;
2810 prflen = alg_oakley_hashdef_hashlen(iph1->approval->hashtype);
2813 "invalid hash type %d.\n", iph1->approval->hashtype);
Dcfparse.y2402 new->hashtype = types[algclass_isakmp_hash];
/external/ipsec-tools/
Dsetup.c307 p->hashtype = hash; in add_proposal()