Home
last modified time | relevance | path

Searched refs:hashsize (Results 1 – 25 of 52) sorted by relevance

123

/netbsd-src/sys/opencrypto/
H A Dxform.c206 .hashsize = 0,
215 .hashsize = 16,
224 .hashsize = 20,
233 .hashsize = 20,
242 .hashsize = 16,
251 .hashsize = 20,
260 .hashsize = 20,
269 .hashsize = 16,
278 .hashsize = 20,
287 .hashsize = 16,
[all …]
H A Dxform.h34 u_int16_t hashsize; member
/netbsd-src/external/gpl2/gettext/dist/gettext-tools/src/
H A Dwrite-java.c157 unsigned int hashsize; in compute_hashsize() local
172 for (hashsize = n; hashsize <= XXN * n; hashsize++) in compute_hashsize()
180 if (hashsize >= best_score) in compute_hashsize()
183 bitmap = (char *) xmalloc (hashsize); in compute_hashsize()
184 memset (bitmap, 0, hashsize); in compute_hashsize()
189 unsigned int idx = hashcodes[j] % hashsize; in compute_hashsize()
194 if ((hashsize % 2) == 0) in compute_hashsize()
200 unsigned int incr = 1 + (hashcodes[j] % (hashsize - 2)); in compute_hashsize()
206 if (idx >= hashsize) in compute_hashsize()
207 idx -= hashsize; in compute_hashsize()
[all …]
/netbsd-src/sys/net/npf/
H A Dlpm.c86 unsigned hashsize; member
114 if (!hmap->hashsize) { in lpm_clear()
118 for (unsigned i = 0; i < hmap->hashsize; i++) { in lpm_clear()
133 kmem_free(hmap->bucket, hmap->hashsize * sizeof(lpm_ent_t *)); in lpm_clear()
135 hmap->hashsize = 0; in lpm_clear()
173 unsigned hashsize; in hashmap_rehash() local
175 for (hashsize = 1; hashsize < size; hashsize <<= 1) { in hashmap_rehash()
178 bucket = kmem_zalloc(hashsize * sizeof(lpm_ent_t *), flags); in hashmap_rehash()
181 for (unsigned n = 0; n < hmap->hashsize; n++) { in hashmap_rehash()
187 const unsigned i = hash & (hashsize - 1); in hashmap_rehash()
[all …]
/netbsd-src/crypto/external/bsd/openssl/dist/test/
H A Dtls13secretstest.c234 size_t hashsize; in test_secret() local
241 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashsize)) { in test_secret()
246 if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize, in test_secret()
247 gensecret, hashsize, 1)) { in test_secret()
252 if (!TEST_mem_eq(gensecret, hashsize, ref_secret, hashsize)) in test_secret()
279 size_t hashsize; in test_handshake_secrets() local
317 hashsize = EVP_MD_get_size(ssl_handshake_md(s)); in test_handshake_secrets()
318 if (!TEST_size_t_eq(sizeof(client_hts), hashsize)) in test_handshake_secrets()
333 if (!TEST_size_t_eq(sizeof(server_hts), hashsize)) in test_handshake_secrets()
355 s->handshake_secret, hashsize, in test_handshake_secrets()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/test/
H A Dtls13secretstest.c226 size_t hashsize; in test_secret() local
233 if (!ssl_handshake_hash(s, hash, sizeof(hash), &hashsize)) { in test_secret()
238 if (!tls13_hkdf_expand(s, md, prk, label, labellen, hash, hashsize, in test_secret()
239 gensecret, hashsize, 1)) { in test_secret()
244 if (!TEST_mem_eq(gensecret, hashsize, ref_secret, hashsize)) in test_secret()
271 size_t hashsize; in test_handshake_secrets() local
309 hashsize = EVP_MD_size(ssl_handshake_md(s)); in test_handshake_secrets()
310 if (!TEST_size_t_eq(sizeof(client_hts), hashsize)) in test_handshake_secrets()
325 if (!TEST_size_t_eq(sizeof(server_hts), hashsize)) in test_handshake_secrets()
347 s->handshake_secret, hashsize, in test_handshake_secrets()
[all …]
/netbsd-src/sys/kern/
H A Dsubr_hash.c93 u_long hashsize, i; in hashinit() local
103 hashsize = 1UL << (ilog2(elements - 1) + 1); in hashinit()
106 p = kmem_alloc(hashsize * esize, waitok ? KM_SLEEP : KM_NOSLEEP); in hashinit()
113 for (i = 0; i < hashsize; i++) in hashinit()
118 for (i = 0; i < hashsize; i++) in hashinit()
123 for (i = 0; i < hashsize; i++) in hashinit()
128 for (i = 0; i < hashsize; i++) in hashinit()
132 *hashmask = hashsize - 1; in hashinit()
/netbsd-src/lib/libc/citrus/
H A Dcitrus_hash.h33 #define _CITRUS_HASH_HEAD(headname, type, hashsize) \ argument
35 LIST_HEAD(, type) chh_table[hashsize]; \
37 #define _CITRUS_HASH_INIT(head, hashsize) \ argument
40 for (_ch_loop = 0; _ch_loop < hashsize; _ch_loop++) \
H A Dcitrus_hash.c47 _citrus_string_hash_func(const char *key, int hashsize) in _citrus_string_hash_func() argument
53 return (int)(_db_hash_std(NULL, &r) % (uint32_t)hashsize); in _citrus_string_hash_func()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/libverify/
H A Dpgpsum.c110 calcsum(uint8_t *out, size_t size, uint8_t *mem, size_t cc, const uint8_t *hashed, size_t hashsize,… in calcsum() argument
138 digest_update(&hash, hashed, hashsize); in calcsum()
146 …(uint8_t *data, size_t size, const char *name, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_file() argument
174 ret = calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_file()
185 …t8_t *data, size_t size, void *mem, size_t cc, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_memory() argument
191 return calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_memory()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/netpgpverify/
H A Dpgpsum.c126 calcsum(uint8_t *out, size_t size, uint8_t *mem, size_t cc, const uint8_t *hashed, size_t hashsize,… in calcsum() argument
154 digest_update(&hash, hashed, hashsize); in calcsum()
204 …(uint8_t *data, size_t size, const char *name, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_file() argument
232 ret = calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_file()
243 …t8_t *data, size_t size, void *mem, size_t cc, const uint8_t *hashed, size_t hashsize, int doarmor) in pgpv_digest_memory() argument
249 return calcsum(data, size, mem, cc, hashed, hashsize, doarmor); in pgpv_digest_memory()
/netbsd-src/crypto/external/bsd/netpgp/dist/src/lib/
H A Dsignature.c163 unsigned hashsize; in rsa_sign() local
173 hashsize = PGP_SHA1_HASH_SIZE + sizeof(prefix_sha1); in rsa_sign()
178 hashsize = PGP_SHA256_HASH_SIZE + sizeof(prefix_sha256); in rsa_sign()
188 if (10 + hashsize > keysize) { in rsa_sign()
196 printf("rsa_sign: PS is %d\n", keysize - hashsize - 1 - 2); in rsa_sign()
198 for (n = 2; n < keysize - hashsize - 1; ++n) { in rsa_sign()
231 unsigned hashsize; in dsa_sign() local
241 hashsize = 20; in dsa_sign()
253 dsasig = pgp_dsa_sign(hashbuf, hashsize, sdsa, dsa); in dsa_sign()
274 unsigned hashsize; in ecdsa_sign() local
[all …]
H A Dcreate.c368 unsigned hashsize; in write_seckey_body() local
376 hashsize = pgp_hash_size(key->hash_alg); in write_seckey_body()
378 size = MIN(needed, hashsize); in write_seckey_body()
379 if ((hashed = calloc(1, hashsize)) == NULL) { in write_seckey_body()
410 (void) memcpy(&sesskey[i * hashsize], in write_seckey_body()
H A Dopenssl_crypto.c1033 unsigned hashsize, in pgp_dsa_sign() argument
1040 dsasig = DSA_do_sign(hashbuf, (int)hashsize, odsa); in pgp_dsa_sign()
1049 unsigned hashsize, in pgp_ecdsa_sign() argument
1056 ecdsasig = ECDSA_do_sign(hashbuf, (int)hashsize, eckey); in pgp_ecdsa_sign()
/netbsd-src/crypto/external/bsd/heimdal/dist/lib/otp/
H A Dotp_parse.c94 unsigned char *res = malloc(alg->hashsize); in get_altword()
99 ret = (unsigned)(res[alg->hashsize - 1]) | in get_altword()
100 ((res[alg->hashsize - 2] & 0x03) << 8); in get_altword()
H A Dotp.h64 int hashsize; member
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/
H A Dtls13_enc.c795 unsigned int hashsize, datalen; in tls13_export_keying_material() local
806 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material()
811 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material()
813 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material()
837 unsigned int hashsize, datalen; in tls13_export_keying_material_early() local
869 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material_early()
874 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material_early()
876 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material_early()
/netbsd-src/crypto/external/bsd/openssl/dist/ssl/
H A Dtls13_enc.c833 unsigned int hashsize, datalen; in tls13_export_keying_material() local
844 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material()
849 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material()
851 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material()
875 unsigned int hashsize, datalen; in tls13_export_keying_material_early() local
908 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material_early()
913 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material_early()
915 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material_early()
/netbsd-src/usr.bin/vmstat/
H A Dvmstat.c1891 int hashsize; /* nlist index for hash size */ member
1927 u_long hashsize, i; in dohashstat() local
1941 if (hashnl[curhash->hashsize].n_value == 0 || in dohashstat()
1945 hashnl[curhash->hashsize].n_name + 1, in dohashstat()
1953 if (strcmp(hashnl[curhash->hashsize].n_name + 1, in dohashstat()
1955 hashnl[curhash->hashsize].n_value != 0 && in dohashstat()
1973 if (hashnl[curhash->hashsize].n_value == 0 || in dohashstat()
1977 strcmp(hashnl[curhash->hashsize].n_name + 1, hashname)) in dohashstat()
1993 deref_kptr((void *)hashnl[curhash->hashsize].n_value, in dohashstat()
1994 &hashsize, sizeof(hashsize), in dohashstat()
[all …]
/netbsd-src/crypto/external/bsd/openssl.old/dist/ssl/statem/
H A Dextensions.c1487 size_t bindersize, labelsize, hashsize; in tls_psk_do_binder() local
1498 hashsize = (size_t)hashsizei; in tls_psk_do_binder()
1548 hashsize, binderkey, hashsize, 1)) { in tls_psk_do_binder()
1554 if (!tls13_derive_finishedkey(s, md, binderkey, finishedkey, hashsize)) { in tls_psk_do_binder()
1618 hashsize); in tls_psk_do_binder()
1628 bindersize = hashsize; in tls_psk_do_binder()
1630 || EVP_DigestSignUpdate(mctx, hash, hashsize) <= 0 in tls_psk_do_binder()
1632 || bindersize != hashsize) { in tls_psk_do_binder()
1642 ret = (CRYPTO_memcmp(binderin, binderout, hashsize) == 0); in tls_psk_do_binder()
/netbsd-src/external/gpl3/gcc.old/dist/libcpp/
H A Dpch.c111 size_t hashsize; member
247 ss->hashsize += NODE_LEN (hn) + 1; in count_defs()
319 ss->hashsize = 0; in cpp_write_pch_deps()
329 definedstrs = ss->definedstrs = XNEWVEC (unsigned char, ss->hashsize); in cpp_write_pch_deps()
338 z.definition_length = ss->hashsize; in cpp_write_pch_deps()
340 || fwrite (ss->definedstrs, ss->hashsize, 1, f) != 1) in cpp_write_pch_deps()
/netbsd-src/external/gpl3/gcc/dist/libcpp/
H A Dpch.cc111 size_t hashsize; member
247 ss->hashsize += NODE_LEN (hn) + 1; in count_defs()
319 ss->hashsize = 0; in cpp_write_pch_deps()
329 definedstrs = ss->definedstrs = XNEWVEC (unsigned char, ss->hashsize); in cpp_write_pch_deps()
338 z.definition_length = ss->hashsize; in cpp_write_pch_deps()
340 || fwrite (ss->definedstrs, ss->hashsize, 1, f) != 1) in cpp_write_pch_deps()
/netbsd-src/sys/coda/
H A Dcoda_io.h59 struct coda_resize { int hashsize, heapsize; }; member
H A Dcoda_namecache.c671 coda_nc_resize(int hashsize, int heapsize, enum dc_status dcstat) in coda_nc_resize() argument
673 if ((hashsize % 2) || (heapsize % 2)) { /* Illegal hash or cache sizes */ in coda_nc_resize()
685 coda_nc_hashsize = hashsize; in coda_nc_resize()
/netbsd-src/lib/libintl/
H A Dgettext.c387 calc_collision_step(uint32_t hashval, uint32_t hashsize) in calc_collision_step()
389 _DIAGASSERT(hashsize>2); in calc_collision_step()
390 return (hashval % (hashsize - 2)) + 1;
397 calc_next_index(uint32_t curidx, uint32_t hashsize, uint32_t step) in calc_next_index()
399 return curidx+step - (curidx >= hashsize-step ? hashsize : 0);
385 calc_collision_step(uint32_t hashval,uint32_t hashsize) calc_collision_step() argument
395 calc_next_index(uint32_t curidx,uint32_t hashsize,uint32_t step) calc_next_index() argument

123