/external/chromium_org/third_party/smhasher/src/ |
D | main.cpp | 127 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 …]
|
D | KeysetTest.h | 27 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 …]
|
D | Stats.h | 41 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 …]
|
D | DifferentialTest.h | 103 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 …]
|
D | AvalancheTest.h | 27 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 …]
|
D | Types.h | 47 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()
|
D | KeysetTest.cpp | 269 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()
|
D | Bitslice.cpp | 53 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/ |
D | perfect.c | 119 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;
|
D | perfect.h | 67 } hashtype; member
|
D | genperf.c | 172 form.hashtype = STRING_HT; in perfect_gen()
|
/external/ipsec-tools/src/racoon/ |
D | pfkey.c | 456 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 …]
|
D | remoteconf.h | 144 int hashtype; member
|
D | ipsec_doi.c | 379 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);
|
D | nattraversal.c | 131 saddr2str(addr), iph1->approval->hashtype, in natt_hash_addr()
|
D | handler.c | 1465 if (approval->hashtype != p->hashtype) { in revalidate_ph1()
|
D | remoteconf.c | 604 alg_oakley_hashdef_name(prop->hashtype)); in dump_rmconf_single()
|
D | oakley.c | 389 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);
|
D | cfparse.y | 2402 new->hashtype = types[algclass_isakmp_hash];
|
/external/ipsec-tools/ |
D | setup.c | 307 p->hashtype = hash; in add_proposal()
|