Home
last modified time | relevance | path

Searched refs:HASH_SIZE (Results 1 – 25 of 956) sorted by relevance

12345678910>>...39

/dports/databases/db18/db-18.1.40/src/common/
H A Ddb_shash.c45 HASH_SIZE(16, 17); /* 2^4 */
46 HASH_SIZE(32, 37); /* 2^5 */
47 HASH_SIZE(64, 67); /* 2^6 */
48 HASH_SIZE(128, 131); /* 2^7 */
49 HASH_SIZE(256, 257); /* 2^8 */
50 HASH_SIZE(512, 521); /* 2^9 */
51 HASH_SIZE(1024, 1031); /* 2^10 */
52 HASH_SIZE(2048, 2053); /* 2^11 */
53 HASH_SIZE(4096, 4099); /* 2^12 */
54 HASH_SIZE(8192, 8191); /* 2^13 */
[all …]
/dports/databases/db5/db-5.3.28/src/common/
H A Ddb_shash.c45 HASH_SIZE(32, 37); /* 2^5 */
46 HASH_SIZE(64, 67); /* 2^6 */
47 HASH_SIZE(128, 131); /* 2^7 */
48 HASH_SIZE(256, 257); /* 2^8 */
49 HASH_SIZE(512, 521); /* 2^9 */
50 HASH_SIZE(1024, 1031); /* 2^10 */
51 HASH_SIZE(2048, 2053); /* 2^11 */
52 HASH_SIZE(4096, 4099); /* 2^12 */
53 HASH_SIZE(8192, 8191); /* 2^13 */
54 HASH_SIZE(16384, 16381); /* 2^14 */
[all …]
/dports/devel/raknet/raknet-3.9.2_10,1/Source/
H A DDS_StringKeyedHash.h31 template <class data_type, unsigned int HASH_SIZE>
68 template <class data_type, unsigned int HASH_SIZE>
74 template <class data_type, unsigned int HASH_SIZE>
80 template <class data_type, unsigned int HASH_SIZE>
87 memset(nodeList,0,sizeof(Node *)*HASH_SIZE); in Push()
95 template <class data_type, unsigned int HASH_SIZE>
109 template <class data_type, unsigned int HASH_SIZE>
162 template <class data_type, unsigned int HASH_SIZE>
203 template <class data_type, unsigned int HASH_SIZE>
269 for (i=0; i < HASH_SIZE; i++) in Clear()
[all …]
/dports/security/botan110/Botan-1.10.17/src/pk_pad/emsa4/
H A Demsa4.cpp37 const size_t HASH_SIZE = hash->output_length(); in encoding_of() local
39 if(msg.size() != HASH_SIZE) in encoding_of()
41 if(output_bits < 8*HASH_SIZE + 8*SALT_SIZE + 9) in encoding_of()
56 EM[output_length - HASH_SIZE - SALT_SIZE - 2] = 0x01; in encoding_of()
58 mgf->mask(H, HASH_SIZE, EM, output_length - HASH_SIZE - 1); in encoding_of()
60 EM.copy(output_length - 1 - HASH_SIZE, H, HASH_SIZE); in encoding_of()
72 const size_t HASH_SIZE = hash->output_length(); in verify() local
75 if(key_bits < 8*HASH_SIZE + 9) in verify()
78 if(raw.size() != HASH_SIZE) in verify()
99 SecureVector<byte> DB(&coded[0], coded.size() - HASH_SIZE - 1); in verify()
[all …]
/dports/textproc/bibutils/bibutils_7.2/bldhash/
H A Dhash_bu.c67 n = calculate_hash_char( list[i], HASH_SIZE ); in hashify_test_size()
106 fprintf( fp, "\t[ 0 ... %u ] = NULL,\n", HASH_SIZE-1 ); in hashify_write()
129 unsigned int HASH_SIZE = (unsigned int ) nlist; in hashify_size() local
133 ok = hashify_test_size( list, nlist, HASH_SIZE, u ); in hashify_size()
135 HASH_SIZE += 1; in hashify_size()
136 if ( HASH_SIZE > max ) break; in hashify_size()
140 else return HASH_SIZE; in hashify_size()
146 unsigned int HASH_SIZE; in hashify() local
151 HASH_SIZE = hashify_size( list, nlist, 10000, &u ); in hashify()
152 if ( HASH_SIZE > 0 ) { in hashify()
[all …]
H A Dhash_marc.c828 n = calculate_hash_char( list[i], HASH_SIZE ); in hashify_marc_test_size()
895 unsigned int HASH_SIZE = (unsigned int ) nlist; in hashify_size() local
901 HASH_SIZE += 1; in hashify_size()
902 if ( HASH_SIZE > max ) break; in hashify_size()
906 else return HASH_SIZE; in hashify_size()
912 unsigned int HASH_SIZE; in hashify_marc() local
917 HASH_SIZE = hashify_size( list, nlist, 10000, &u ); in hashify_marc()
918 if ( HASH_SIZE > 0 ) { in hashify_marc()
981 unsigned int HASH_SIZE; in hashify_marc_trans() local
994 HASH_SIZE = hashify_size( list, ntrans, 10000, &u ); in hashify_marc_trans()
[all …]
/dports/net/opal/opal-3.10.10/src/h323/
H A Dh235auth1.cxx59 #define HASH_SIZE 12 macro
241 encodedToken.m_hash.SetData(HASH_SIZE*8, SearchPattern); in CreateCryptoToken()
268 memset(&rawPDU[foundat], 0, HASH_SIZE); in Finalise()
277 char key[HASH_SIZE]; in Finalise()
286 memcpy(&rawPDU[foundat], key, HASH_SIZE); in Finalise()
406 BYTE RV[HASH_SIZE]; in ValidateCryptoToken()
414 memcpy(RV, data, HASH_SIZE); in ValidateCryptoToken()
430 while (foundat < asnLen - HASH_SIZE) { in ValidateCryptoToken()
449 memset((BYTE *)asnPtr+foundat, 0, HASH_SIZE); in ValidateCryptoToken()
457 char key[HASH_SIZE]; in ValidateCryptoToken()
[all …]
/dports/audio/rhvoice/RHVoice-1.2.4/src/third-party/cldr/tools/cldr-apps/src/main/java/org/unicode/cldr/web/
H A DIntHash.java4 public final static int HASH_SIZE = 2048;
8 public final static int BUCKET_COUNT = MAX_SIZE / HASH_SIZE;
19 return id / HASH_SIZE;
31 …return "IntHash<" + "T" + "> Max:" + MAX_SIZE + ", HASH:" + HASH_SIZE + ", NRBUCKETS:" + filled + …
32 + " : last bucket=" + lastbuck + ", greatest max=" + ((lastbuck + 1) * HASH_SIZE);
41 bucket = (T[]) new Object[HASH_SIZE];
44 return bucket[id % HASH_SIZE] = str;
58 return bucket[id % HASH_SIZE];
/dports/net/h323plus/h323plus-1_27_2/src/
H A Dh235auth1.cxx57 #define HASH_SIZE 12 macro
347 encodedToken.m_hash.SetData(HASH_SIZE*8, SearchPattern); in CreateCryptoToken()
374 memset(&rawPDU[foundat], 0, HASH_SIZE); in Finalise()
383 char key[HASH_SIZE]; in Finalise()
392 memcpy(&rawPDU[foundat], key, HASH_SIZE); in Finalise()
533 BYTE RV[HASH_SIZE]; in ValidateCryptoToken()
541 memcpy(RV, data, HASH_SIZE); in ValidateCryptoToken()
557 while (foundat < asnLen - HASH_SIZE) { in ValidateCryptoToken()
576 memset((BYTE *)asnPtr+foundat, 0, HASH_SIZE); in ValidateCryptoToken()
584 char key[HASH_SIZE]; in ValidateCryptoToken()
[all …]
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/pk_pad/emsa_pssr/
H A Dpssr.cpp29 const size_t HASH_SIZE = hash.output_length(); in pss_encode() local
32 if(msg.size() != HASH_SIZE) in pss_encode()
34 if(output_bits < 8*HASH_SIZE + 8*SALT_SIZE + 9) in pss_encode()
47 EM[output_length - HASH_SIZE - SALT_SIZE - 2] = 0x01; in pss_encode()
49 mgf1_mask(hash, H.data(), HASH_SIZE, EM.data(), output_length - HASH_SIZE - 1); in pss_encode()
51 buffer_insert(EM, output_length - 1 - HASH_SIZE, H); in pss_encode()
62 const size_t HASH_SIZE = hash.output_length(); in pss_verify() local
65 if(key_bits < 8*HASH_SIZE + 9) in pss_verify()
68 if(message_hash.size() != HASH_SIZE) in pss_verify()
90 const size_t DB_size = coded.size() - HASH_SIZE - 1; in pss_verify()
[all …]
/dports/security/botan2/Botan-2.18.2/src/lib/pk_pad/emsa_pssr/
H A Dpssr.cpp29 const size_t HASH_SIZE = hash.output_length(); in pss_encode() local
32 if(msg.size() != HASH_SIZE) in pss_encode()
34 if(output_bits < 8*HASH_SIZE + 8*SALT_SIZE + 9) in pss_encode()
47 EM[output_length - HASH_SIZE - SALT_SIZE - 2] = 0x01; in pss_encode()
49 mgf1_mask(hash, H.data(), HASH_SIZE, EM.data(), output_length - HASH_SIZE - 1); in pss_encode()
51 buffer_insert(EM, output_length - 1 - HASH_SIZE, H); in pss_encode()
62 const size_t HASH_SIZE = hash.output_length(); in pss_verify() local
65 if(key_bits < 8*HASH_SIZE + 9) in pss_verify()
68 if(message_hash.size() != HASH_SIZE) in pss_verify()
90 const size_t DB_size = coded.size() - HASH_SIZE - 1; in pss_verify()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/pk_pad/emsa_pssr/
H A Dpssr.cpp29 const size_t HASH_SIZE = hash.output_length(); in pss_encode() local
32 if(msg.size() != HASH_SIZE) in pss_encode()
34 if(output_bits < 8*HASH_SIZE + 8*SALT_SIZE + 9) in pss_encode()
47 EM[output_length - HASH_SIZE - SALT_SIZE - 2] = 0x01; in pss_encode()
49 mgf1_mask(hash, H.data(), HASH_SIZE, EM.data(), output_length - HASH_SIZE - 1); in pss_encode()
51 buffer_insert(EM, output_length - 1 - HASH_SIZE, H); in pss_encode()
62 const size_t HASH_SIZE = hash.output_length(); in pss_verify() local
65 if(key_bits < 8*HASH_SIZE + 9) in pss_verify()
68 if(message_hash.size() != HASH_SIZE) in pss_verify()
90 const size_t DB_size = coded.size() - HASH_SIZE - 1; in pss_verify()
[all …]
/dports/textproc/senna/senna-1.1.5/lib/
H A Dcache.c55 #define HASH_SIZE sen_hash_size macro
124 for (h = 0; h < HASH_SIZE; h++) { in sen_cache_init()
188 size_t s = sizeof(CacheHash) * HASH_SIZE; in sen_cache_init()
190 for (i = 0; i < HASH_SIZE; i++) { in sen_cache_init()
194 hash->num = i * (CACHE_NUM / HASH_SIZE); in sen_cache_init()
281 for (i = 0; i < CACHE_NUM / HASH_SIZE; i++) { in sen_cache_hash_search()
282 int number = i + (h * (CACHE_NUM / HASH_SIZE)); in sen_cache_hash_search()
353 if (++r > CACHE_NUM / HASH_SIZE) { in sen_cache_hash_search()
513 hash_end = hash_end + HASH_SIZE; in sen_cache_mark_invalid()
552 for (i = 0; i < HASH_SIZE; i++) { in sen_cache_dump()
[all …]
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/pk_pad/iso9796/
H A Diso9796.cpp35 const size_t HASH_SIZE = hash->output_length(); in iso9796_encoding() local
37 if(output_length <= HASH_SIZE + SALT_SIZE + tLength) in iso9796_encoding()
43 const size_t capacity = output_length - HASH_SIZE - SALT_SIZE - tLength - 1; in iso9796_encoding()
80 mgf1_mask(*hash, H.data(), HASH_SIZE, EM.data(), in iso9796_encoding()
81 output_length - HASH_SIZE - tLength); in iso9796_encoding()
82 buffer_insert(EM, output_length - HASH_SIZE - tLength, H); in iso9796_encoding()
108 const size_t HASH_SIZE = hash->output_length(); in iso9796_verification() local
137 const size_t DB_size = coded.size() - HASH_SIZE - tLength; in iso9796_verification()
141 mgf1_mask(*hash, H, HASH_SIZE, DB, DB_size); in iso9796_verification()
175 coded.end() - tLength - HASH_SIZE - SALT_SIZE); in iso9796_verification()
[all …]
/dports/security/botan2/Botan-2.18.2/src/lib/pk_pad/iso9796/
H A Diso9796.cpp35 const size_t HASH_SIZE = hash->output_length(); in iso9796_encoding() local
37 if(output_length <= HASH_SIZE + SALT_SIZE + tLength) in iso9796_encoding()
43 const size_t capacity = output_length - HASH_SIZE - SALT_SIZE - tLength - 1; in iso9796_encoding()
80 mgf1_mask(*hash, H.data(), HASH_SIZE, EM.data(), in iso9796_encoding()
81 output_length - HASH_SIZE - tLength); in iso9796_encoding()
82 buffer_insert(EM, output_length - HASH_SIZE - tLength, H); in iso9796_encoding()
108 const size_t HASH_SIZE = hash->output_length(); in iso9796_verification() local
137 const size_t DB_size = coded.size() - HASH_SIZE - tLength; in iso9796_verification()
141 mgf1_mask(*hash, H, HASH_SIZE, DB, DB_size); in iso9796_verification()
175 coded.end() - tLength - HASH_SIZE - SALT_SIZE); in iso9796_verification()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/pk_pad/iso9796/
H A Diso9796.cpp35 const size_t HASH_SIZE = hash->output_length(); in iso9796_encoding() local
37 if(output_length <= HASH_SIZE + SALT_SIZE + tLength) in iso9796_encoding()
43 const size_t capacity = output_length - HASH_SIZE - SALT_SIZE - tLength - 1; in iso9796_encoding()
80 mgf1_mask(*hash, H.data(), HASH_SIZE, EM.data(), in iso9796_encoding()
81 output_length - HASH_SIZE - tLength); in iso9796_encoding()
82 buffer_insert(EM, output_length - HASH_SIZE - tLength, H); in iso9796_encoding()
108 const size_t HASH_SIZE = hash->output_length(); in iso9796_verification() local
137 const size_t DB_size = coded.size() - HASH_SIZE - tLength; in iso9796_verification()
141 mgf1_mask(*hash, H, HASH_SIZE, DB, DB_size); in iso9796_verification()
175 coded.end() - tLength - HASH_SIZE - SALT_SIZE); in iso9796_verification()
[all …]
/dports/devel/objecthash/objecthash-770874c/
H A Dobjecthash_test.c8 for (int n = 0; n < HASH_SIZE; ++n) in a_to_hash()
18 if (memcmp(h1, h2, HASH_SIZE) != 0) { in check_hash()
20 hexdump(h1, HASH_SIZE); in check_hash()
22 hexdump(h2, HASH_SIZE); in check_hash()
63 char h[2 * HASH_SIZE + 2]; // hash in hex, \n, \0 in main()
65 assert(strlen(h) == 2 * HASH_SIZE + 1); in main()
66 assert(h[2 * HASH_SIZE] == '\n'); in main()
/dports/security/botan110/Botan-1.10.17/src/pk_pad/emsa2/
H A Demsa2.cpp23 const size_t HASH_SIZE = empty_hash.size(); in emsa2_encoding() local
27 if(msg.size() != HASH_SIZE) in emsa2_encoding()
29 if(output_length < HASH_SIZE + 4) in emsa2_encoding()
33 for(size_t j = 0; j != HASH_SIZE; ++j) in emsa2_encoding()
40 output[output_length - 3 - HASH_SIZE] = 0xBA; in emsa2_encoding()
41 set_mem(&output[1], output_length - 4 - HASH_SIZE, 0xBB); in emsa2_encoding()
42 output.copy(output_length - (HASH_SIZE + 2), &msg[0], msg.size()); in emsa2_encoding()
/dports/devel/cc65/cc65-2.19/src/da65/
H A Dsegment.c55 #define HASH_SIZE 53 macro
69 static Segment* StartTab[HASH_SIZE]; /* Table containing segment starts */
94 S->NextStart = StartTab[Start % HASH_SIZE]; in AddAbsSegment()
95 StartTab[Start % HASH_SIZE] = S; in AddAbsSegment()
110 Segment* S = StartTab[Addr % HASH_SIZE]; in GetSegmentStartName()
128 Segment* S = StartTab[Addr % HASH_SIZE]; in GetSegmentAddrSize()
/dports/devel/dasm/dasm-2.20.14.1/research/
H A Dhash_compare.c12 #define HASH_SIZE (1 << HASH_BITS) macro
13 #define MHASHAND (HASH_SIZE -1)
186 printf("HASH_SIZE: %d, MHASHAND: 0x%04x\n", HASH_SIZE, MHASHAND); in main()
225 uint16_t hashtable[HASH_SIZE]; in main()
226 memset(hashtable, 0, sizeof(uint16_t)*HASH_SIZE); in main()
228 char symbols[HASH_SIZE][32]; in main()
229 memset(symbols, 0, HASH_SIZE*32); in main()
261 for (int n=0; n<HASH_SIZE; n++) { in main()
271 singles, (singles*100)/HASH_SIZE, unused, collisions, maxcol); in main()
/dports/multimedia/gstreamer1-libav/gst-libav-1.16.2/gst-libs/ext/libav/libavformat/tests/
H A Dmovenc.c37 #define HASH_SIZE 16 macro
57 uint8_t hash[HASH_SIZE];
156 for (i = 0; i < HASH_SIZE; i++) in close_out()
362 uint8_t header[HASH_SIZE]; in main()
363 uint8_t content[HASH_SIZE]; in main()
437 memcpy(content, hash, HASH_SIZE); in main()
524 memcpy(header, hash, HASH_SIZE); in main()
538 memcpy(content, hash, HASH_SIZE); in main()
572 memcpy(content, hash, HASH_SIZE); in main()
614 memcpy(header, hash, HASH_SIZE); in main()
[all …]
/dports/multimedia/ffmpeg/ffmpeg-4.4.1/libavformat/tests/
H A Dmovenc.c37 #define HASH_SIZE 16 macro
57 uint8_t hash[HASH_SIZE];
157 for (i = 0; i < HASH_SIZE; i++) in close_out()
359 uint8_t header[HASH_SIZE]; in main()
360 uint8_t content[HASH_SIZE]; in main()
439 memcpy(content, hash, HASH_SIZE); in main()
526 memcpy(header, hash, HASH_SIZE); in main()
540 memcpy(content, hash, HASH_SIZE); in main()
574 memcpy(content, hash, HASH_SIZE); in main()
616 memcpy(header, hash, HASH_SIZE); in main()
[all …]
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/ffmpeg/libavformat/tests/
H A Dmovenc.c37 #define HASH_SIZE 16 macro
57 uint8_t hash[HASH_SIZE];
156 for (i = 0; i < HASH_SIZE; i++) in close_out()
362 uint8_t header[HASH_SIZE]; in main()
363 uint8_t content[HASH_SIZE]; in main()
437 memcpy(content, hash, HASH_SIZE); in main()
524 memcpy(header, hash, HASH_SIZE); in main()
538 memcpy(content, hash, HASH_SIZE); in main()
572 memcpy(content, hash, HASH_SIZE); in main()
614 memcpy(header, hash, HASH_SIZE); in main()
[all …]
/dports/multimedia/handbrake/ffmpeg-4.4/libavformat/tests/
H A Dmovenc.c37 #define HASH_SIZE 16 macro
57 uint8_t hash[HASH_SIZE];
157 for (i = 0; i < HASH_SIZE; i++) in close_out()
359 uint8_t header[HASH_SIZE]; in main()
360 uint8_t content[HASH_SIZE]; in main()
439 memcpy(content, hash, HASH_SIZE); in main()
526 memcpy(header, hash, HASH_SIZE); in main()
540 memcpy(content, hash, HASH_SIZE); in main()
574 memcpy(content, hash, HASH_SIZE); in main()
616 memcpy(header, hash, HASH_SIZE); in main()
[all …]
/dports/security/botan110/Botan-1.10.17/src/math/numbertheory/
H A Ddsa_gen.cpp60 const size_t HASH_SIZE = hash->output_length(); in generate_dsa_primes() local
89 const size_t n = (pbits-1) / (HASH_SIZE * 8), in generate_dsa_primes()
90 b = (pbits-1) % (HASH_SIZE * 8); in generate_dsa_primes()
93 SecureVector<byte> V(HASH_SIZE * (n+1)); in generate_dsa_primes()
101 hash->final(&V[HASH_SIZE * (n-k)]); in generate_dsa_primes()
104 X.binary_decode(&V[HASH_SIZE - 1 - b/8], in generate_dsa_primes()
105 V.size() - (HASH_SIZE - 1 - b/8)); in generate_dsa_primes()

12345678910>>...39