Home
last modified time | relevance | path

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

123

/freebsd-14.2/sys/kern/
H A Dsubr_hash.c58 long hashsize, i; in hashinit_flags() local
66 for (hashsize = 1; hashsize <= elements; hashsize <<= 1) in hashinit_flags()
68 hashsize >>= 1; in hashinit_flags()
73 for (i = 0; i < hashsize; i++) in hashinit_flags()
75 *hashmask = hashsize - 1; in hashinit_flags()
114 long hashsize, i; in phashinit_flags() local
122 for (i = 1, hashsize = primes[1]; hashsize <= elements;) { in phashinit_flags()
126 hashsize = primes[i]; in phashinit_flags()
128 hashsize = primes[i - 1]; in phashinit_flags()
135 for (i = 0; i < hashsize; i++) in phashinit_flags()
[all …]
/freebsd-14.2/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()
367 if (!TEST_size_t_eq(sizeof(client_ats), hashsize)) in test_handshake_secrets()
[all …]
/freebsd-14.2/sys/opencrypto/
H A Dxform_sha2.c67 .hashsize = SHA2_224_HASH_LEN,
79 .hashsize = SHA2_256_HASH_LEN,
91 .hashsize = SHA2_384_HASH_LEN,
103 .hashsize = SHA2_512_HASH_LEN,
116 .hashsize = SHA2_224_HASH_LEN,
128 .hashsize = SHA2_256_HASH_LEN,
140 .hashsize = SHA2_384_HASH_LEN,
152 .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.c271 int hashsize; member
504 cse->hashsize = sop->maclen; in cse_create()
506 cse->hashsize = thash->hashsize; in cse_create()
508 cse->hashsize = txform->macsize; in cse_create()
654 if (cop->mac && cse->hashsize == 0) { in cryptodev_op()
683 if (cse->hashsize) in cryptodev_op()
800 cse->hashsize); in cryptodev_op()
883 if (cse->hashsize == 0 || caead->tag == NULL) { in cryptodev_aead()
961 cse->hashsize); in cryptodev_aead()
964 cse->hashsize); in cryptodev_aead()
[all …]
H A Dxform_rmd160.c63 .hashsize = RIPEMD160_HASH_LEN,
76 .hashsize = RIPEMD160_HASH_LEN,
H A Dxform_sha1.c63 .hashsize = SHA1_HASH_LEN,
76 .hashsize = SHA1_HASH_LEN,
H A Dxform_auth.h54 uint16_t hashsize; member
H A Dxform_poly1305.c64 .hashsize = POLY1305_HASH_LEN,
H A Dxform_null.c84 .hashsize = NULL_HASH_LEN,
/freebsd-14.2/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-14.2/sys/netinet/
H A Dtcp_hostcache.c127 u_int hashsize; member
172 &VNET_NAME(tcp_hostcache.hashsize), 0,
234 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; in tcp_hc_init()
241 &V_tcp_hostcache.hashsize); in tcp_hc_init()
242 if (!powerof2(V_tcp_hostcache.hashsize)) { in tcp_hc_init()
246 V_tcp_hostcache.hashmask = V_tcp_hostcache.hashsize - 1; in tcp_hc_init()
268 for (i = 0; i < V_tcp_hostcache.hashsize; i++) { in tcp_hc_init()
306 for (i = 0; i < V_tcp_hostcache.hashsize; i++) in tcp_hc_destroy()
668 for (i = 0; i < V_tcp_hostcache.hashsize; i++) { in sysctl_tcp_hc_list()
730 for (i = 0; i < V_tcp_hostcache.hashsize; i++) { in sysctl_tcp_hc_histo()
[all …]
H A Dtcp_syncache.c190 &VNET_NAME(tcp_syncache.hashsize), 0,
255 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; in syncache_init()
261 &V_tcp_syncache.hashsize); in syncache_init()
264 if (!powerof2(V_tcp_syncache.hashsize) || in syncache_init()
265 V_tcp_syncache.hashsize == 0) { in syncache_init()
267 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; in syncache_init()
269 V_tcp_syncache.hashmask = V_tcp_syncache.hashsize - 1; in syncache_init()
273 V_tcp_syncache.hashsize * V_tcp_syncache.bucket_limit; in syncache_init()
286 for (i = 0; i < V_tcp_syncache.hashsize; i++) { in syncache_init()
343 for (i = 0; i < V_tcp_syncache.hashsize; i++) { in syncache_destroy()
[all …]
/freebsd-14.2/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-14.2/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-14.2/sys/crypto/via/
H A Dpadlock_hash.c84 .hashsize = SHA1_HASH_LEN,
96 .hashsize = SHA2_256_HASH_LEN,
302 axf->Update(&ctx, hash, axf->hashsize); in padlock_authcompute()
368 ses->ses_mlen = ses->ses_axf->hashsize; in padlock_hash_setup()
/freebsd-14.2/sys/dev/glxsb/
H A Dglxsb_hash.c85 axf->Update(&ctx, hash, axf->hashsize); in glxsb_authcompute()
112 ses->ses_mlen = ses->ses_axf->hashsize; in glxsb_hash_setup()
/freebsd-14.2/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-14.2/contrib/ncurses/include/
H A DMakefile.in88 hashsize.h \
131 hashsize.h: $(CAPLIST) \
/freebsd-14.2/sys/crypto/blake2/
H A Dblake2-sw.c82 .hashsize = BLAKE2B_OUTBYTES,
145 .hashsize = BLAKE2S_OUTBYTES,
/freebsd-14.2/contrib/ncurses/ncurses/
H A DMakefile.in265 ../include/hashsize.h
279 ../include/hashsize.h \
286 ../include/hashsize.h \
326 ../include/hashsize.h \

123