Home
last modified time | relevance | path

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

123

/freebsd/sys/kern/
H A Dsubr_hash.c55 long hashsize, i; in hashinit_flags() local
63 for (hashsize = 1; hashsize <= elements; hashsize <<= 1) in hashinit_flags()
65 hashsize >>= 1; in hashinit_flags()
67 hashtbl = malloc((u_long)hashsize * sizeof(*hashtbl), type, in hashinit_flags()
70 for (i = 0; i < hashsize; i++) in hashinit_flags()
72 *hashmask = hashsize - 1; in hashinit_flags()
111 long hashsize, i; in phashinit_flags() local
119 for (i = 1, hashsize = primes[1]; hashsize <= elements;) { in phashinit_flags()
123 hashsize = primes[i]; in phashinit_flags()
125 hashsize = primes[i - 1]; in phashinit_flags()
[all …]
/freebsd/crypto/openssl/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 …]
/freebsd/sys/opencrypto/
H A Dxform_sha2.c66 .hashsize = SHA2_224_HASH_LEN,
78 .hashsize = SHA2_256_HASH_LEN,
90 .hashsize = SHA2_384_HASH_LEN,
102 .hashsize = SHA2_512_HASH_LEN,
115 .hashsize = SHA2_224_HASH_LEN,
127 .hashsize = SHA2_256_HASH_LEN,
139 .hashsize = SHA2_384_HASH_LEN,
151 .hashsize = SHA2_512_HASH_LEN,
H A Dxform_cbc_mac.c10 .hashsize = AES_CBC_MAC_HASH_LEN,
23 .hashsize = AES_CBC_MAC_HASH_LEN,
36 .hashsize = AES_CBC_MAC_HASH_LEN,
H A Dxform_gmac.c70 .hashsize = AES_GMAC_HASH_LEN,
84 .hashsize = AES_GMAC_HASH_LEN,
98 .hashsize = AES_GMAC_HASH_LEN,
H A Dcryptodev.c270 int hashsize; member
503 cse->hashsize = sop->maclen; in cse_create()
505 cse->hashsize = thash->hashsize; in cse_create()
507 cse->hashsize = txform->macsize; in cse_create()
653 if (cop->mac && cse->hashsize == 0) { in cryptodev_op()
670 cod = cod_alloc(cse, 0, cop->len + cse->hashsize); in cryptodev_op()
682 if (cse->hashsize) in cryptodev_op()
766 crypto_use_buf(crp, cod->buf, cop->len + cse->hashsize); in cryptodev_op()
768 crypto_use_output_buf(crp, cod->obuf, cop->len + cse->hashsize); in cryptodev_op()
799 cse->hashsize); in cryptodev_op()
[all …]
H A Dxform_rmd160.c62 .hashsize = RIPEMD160_HASH_LEN,
75 .hashsize = RIPEMD160_HASH_LEN,
H A Dxform_sha1.c62 .hashsize = SHA1_HASH_LEN,
75 .hashsize = SHA1_HASH_LEN,
H A Dxform_auth.h54 uint16_t hashsize; member
H A Dxform_poly1305.c64 .hashsize = POLY1305_HASH_LEN,
/freebsd/lib/libc/iconv/
H A Dcitrus_hash.h35 #define _CITRUS_HASH_HEAD(headname, type, hashsize) \ argument
37 LIST_HEAD(, type) chh_table[hashsize]; \
39 #define _CITRUS_HASH_INIT(head, hashsize) \ argument
43 for (_ch_loop = 0; _ch_loop < hashsize; _ch_loop++) \
H A Dcitrus_hash.c44 _citrus_string_hash_func(const char *key, int hashsize) in _citrus_string_hash_func() argument
50 return ((int)(_db_hash_std(&r) % (uint32_t)hashsize)); in _citrus_string_hash_func()
/freebsd/sys/netinet/
H A Dtcp_hostcache.c126 u_int hashsize; member
170 SYSCTL_UINT(_net_inet_tcp_hostcache, OID_AUTO, hashsize, CTLFLAG_VNET | CTLFLAG_RDTUN,
171 &VNET_NAME(tcp_hostcache.hashsize), 0,
233 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; in tcp_hc_init()
240 &V_tcp_hostcache.hashsize); in tcp_hc_init()
241 if (!powerof2(V_tcp_hostcache.hashsize)) { in tcp_hc_init()
243 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; /* default */ in tcp_hc_init()
245 V_tcp_hostcache.hashmask = V_tcp_hostcache.hashsize - 1; in tcp_hc_init()
250 cache_limit = V_tcp_hostcache.hashsize * V_tcp_hostcache.bucket_limit; in tcp_hc_init()
261 malloc(V_tcp_hostcache.hashsize * sizeof(struct hc_head), in tcp_hc_init()
[all …]
H A Dtcp_syncache.c181 SYSCTL_UINT(_net_inet_tcp_syncache, OID_AUTO, hashsize, CTLFLAG_VNET | CTLFLAG_RDTUN,
182 &VNET_NAME(tcp_syncache.hashsize), 0,
247 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; in syncache_init()
253 &V_tcp_syncache.hashsize); in syncache_init()
256 if (!powerof2(V_tcp_syncache.hashsize) || in syncache_init()
257 V_tcp_syncache.hashsize == 0) { in syncache_init()
259 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; in syncache_init()
261 V_tcp_syncache.hashmask = V_tcp_syncache.hashsize - 1; in syncache_init()
265 V_tcp_syncache.hashsize * V_tcp_syncache.bucket_limit; in syncache_init()
270 V_tcp_syncache.hashbase = malloc(V_tcp_syncache.hashsize * in syncache_init()
[all …]
H A Dtcp_subr.c1143 int hashsize; in maketcp_hashsize() local
1149 hashsize = 1 << fls(size); in maketcp_hashsize()
1151 if (hashsize < size) { in maketcp_hashsize()
1152 hashsize = 1 << (fls(size) - 1); in maketcp_hashsize()
1154 return (hashsize); in maketcp_hashsize()
1475 int hashsize; in tcp_init() local
1542 hashsize = tcp_tcbhashsize; in tcp_init()
1543 if (hashsize == 0) { in tcp_init()
1550 hashsize = maketcp_hashsize(maxsockets / 4); in tcp_init()
1555 if (hashsize < 512) in tcp_init()
[all …]
/freebsd/sys/crypto/openssl/
H A Dossl_sha256.c99 .hashsize = SHA2_224_HASH_LEN,
110 .hashsize = SHA2_256_HASH_LEN,
H A Dossl_sha1.c66 .hashsize = SHA1_HASH_LEN,
H A Dossl_sha512.c236 .hashsize = SHA2_384_HASH_LEN,
247 .hashsize = SHA2_512_HASH_LEN,
/freebsd/crypto/openssl/ssl/
H A Dtls13_enc.c844 unsigned int hashsize, datalen; in tls13_export_keying_material() local
855 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material()
860 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material()
862 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material()
886 unsigned int hashsize, datalen; in tls13_export_keying_material_early() local
919 || EVP_DigestFinal_ex(ctx, hash, &hashsize) <= 0 in tls13_export_keying_material_early()
924 data, datalen, exportsecret, hashsize, 0) in tls13_export_keying_material_early()
926 sizeof(exporterlabel) - 1, hash, hashsize, in tls13_export_keying_material_early()
/freebsd/sys/crypto/via/
H A Dpadlock_hash.c83 .hashsize = SHA1_HASH_LEN,
95 .hashsize = SHA2_256_HASH_LEN,
301 axf->Update(&ctx, hash, axf->hashsize); in padlock_authcompute()
367 ses->ses_mlen = ses->ses_axf->hashsize; in padlock_hash_setup()
/freebsd/crypto/openssl/ssl/statem/
H A Dextensions.c1480 size_t bindersize, labelsize, hashsize; in tls_psk_do_binder() local
1490 hashsize = (size_t)hashsizei; in tls_psk_do_binder()
1539 hashsize, binderkey, hashsize, 1)) { in tls_psk_do_binder()
1545 if (!tls13_derive_finishedkey(s, md, binderkey, finishedkey, hashsize)) { in tls_psk_do_binder()
1605 hashsize); in tls_psk_do_binder()
1614 bindersize = hashsize; in tls_psk_do_binder()
1617 || EVP_DigestSignUpdate(mctx, hash, hashsize) <= 0 in tls_psk_do_binder()
1619 || bindersize != hashsize) { in tls_psk_do_binder()
1628 ret = (CRYPTO_memcmp(binderin, binderout, hashsize) == 0); in tls_psk_do_binder()
/freebsd/sys/dev/glxsb/
H A Dglxsb_hash.c84 axf->Update(&ctx, hash, axf->hashsize); in glxsb_authcompute()
111 ses->ses_mlen = ses->ses_axf->hashsize; in glxsb_hash_setup()
/freebsd/contrib/ncurses/include/
H A DMakefile.in88 hashsize.h \
131 hashsize.h: $(CAPLIST) \
/freebsd/contrib/ncurses/ncurses/
H A DMakefile.in265 ../include/hashsize.h
279 ../include/hashsize.h \
286 ../include/hashsize.h \
326 ../include/hashsize.h \
/freebsd/sys/crypto/blake2/
H A Dblake2-sw.c82 .hashsize = BLAKE2B_OUTBYTES,
145 .hashsize = BLAKE2S_OUTBYTES,

123