| /freebsd-14.2/sys/kern/ |
| H A D | subr_hash.c | 58 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 D | tls13secretstest.c | 234 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 D | xform_sha2.c | 67 .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 D | xform_cbc_mac.c | 10 .hashsize = AES_CBC_MAC_HASH_LEN, 23 .hashsize = AES_CBC_MAC_HASH_LEN, 36 .hashsize = AES_CBC_MAC_HASH_LEN,
|
| H A D | xform_gmac.c | 70 .hashsize = AES_GMAC_HASH_LEN, 84 .hashsize = AES_GMAC_HASH_LEN, 98 .hashsize = AES_GMAC_HASH_LEN,
|
| H A D | cryptodev.c | 271 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 D | xform_rmd160.c | 63 .hashsize = RIPEMD160_HASH_LEN, 76 .hashsize = RIPEMD160_HASH_LEN,
|
| H A D | xform_sha1.c | 63 .hashsize = SHA1_HASH_LEN, 76 .hashsize = SHA1_HASH_LEN,
|
| H A D | xform_auth.h | 54 uint16_t hashsize; member
|
| H A D | xform_poly1305.c | 64 .hashsize = POLY1305_HASH_LEN,
|
| H A D | xform_null.c | 84 .hashsize = NULL_HASH_LEN,
|
| /freebsd-14.2/lib/libc/iconv/ |
| H A D | citrus_hash.h | 35 #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 D | citrus_hash.c | 44 _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 D | tcp_hostcache.c | 127 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 D | tcp_syncache.c | 190 &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 D | ossl_sha256.c | 99 .hashsize = SHA2_224_HASH_LEN, 110 .hashsize = SHA2_256_HASH_LEN,
|
| H A D | ossl_sha1.c | 66 .hashsize = SHA1_HASH_LEN,
|
| H A D | ossl_sha512.c | 236 .hashsize = SHA2_384_HASH_LEN, 247 .hashsize = SHA2_512_HASH_LEN,
|
| /freebsd-14.2/crypto/openssl/ssl/ |
| H A D | tls13_enc.c | 844 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 D | padlock_hash.c | 84 .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 D | glxsb_hash.c | 85 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 D | extensions.c | 1480 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 D | Makefile.in | 88 hashsize.h \ 131 hashsize.h: $(CAPLIST) \
|
| /freebsd-14.2/sys/crypto/blake2/ |
| H A D | blake2-sw.c | 82 .hashsize = BLAKE2B_OUTBYTES, 145 .hashsize = BLAKE2S_OUTBYTES,
|
| /freebsd-14.2/contrib/ncurses/ncurses/ |
| H A D | Makefile.in | 265 ../include/hashsize.h 279 ../include/hashsize.h \ 286 ../include/hashsize.h \ 326 ../include/hashsize.h \
|