Home
last modified time | relevance | path

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

12

/f-stack/freebsd/kern/
H A Dsubr_hash.c60 long hashsize, i; in hashinit_flags() local
68 for (hashsize = 1; hashsize <= elements; hashsize <<= 1) in hashinit_flags()
70 hashsize >>= 1; in hashinit_flags()
75 for (i = 0; i < hashsize; i++) in hashinit_flags()
77 *hashmask = hashsize - 1; in hashinit_flags()
116 long hashsize, i; in phashinit_flags() local
124 for (i = 1, hashsize = primes[1]; hashsize <= elements;) { in phashinit_flags()
128 hashsize = primes[i]; in phashinit_flags()
130 hashsize = primes[i - 1]; in phashinit_flags()
137 for (i = 0; i < hashsize; i++) in phashinit_flags()
[all …]
/f-stack/lib/
H A Dff_kern_subr.c59 long hashsize; in hashinit_flags() local
70 for (hashsize = 1; hashsize <= elements; hashsize <<= 1) in hashinit_flags()
72 hashsize >>= 1; in hashinit_flags()
78 for (i = 0; i < hashsize; i++) in hashinit_flags()
80 *hashmask = hashsize - 1; in hashinit_flags()
118 long hashsize, i; in phashinit_flags() local
126 for (i = 1, hashsize = primes[1]; hashsize <= elements;) { in phashinit_flags()
130 hashsize = primes[i]; in phashinit_flags()
132 hashsize = primes[i - 1]; in phashinit_flags()
139 for (i = 0; i < hashsize; i++) in phashinit_flags()
[all …]
/f-stack/freebsd/opencrypto/
H A Dxform_sha2.c68 .hashsize = SHA2_224_HASH_LEN,
80 .hashsize = SHA2_256_HASH_LEN,
92 .hashsize = SHA2_384_HASH_LEN,
104 .hashsize = SHA2_512_HASH_LEN,
117 .hashsize = SHA2_224_HASH_LEN,
129 .hashsize = SHA2_256_HASH_LEN,
141 .hashsize = SHA2_384_HASH_LEN,
153 .hashsize = SHA2_512_HASH_LEN,
H A Dxform_cbc_mac.c12 .hashsize = AES_CBC_MAC_HASH_LEN,
25 .hashsize = AES_CBC_MAC_HASH_LEN,
38 .hashsize = AES_CBC_MAC_HASH_LEN,
H A Dxform_gmac.c71 .hashsize = AES_GMAC_HASH_LEN,
85 .hashsize = AES_GMAC_HASH_LEN,
99 .hashsize = AES_GMAC_HASH_LEN,
H A Dxform_sha1.c64 .hashsize = SHA1_HASH_LEN,
77 .hashsize = SHA1_HASH_LEN,
H A Dcryptodev.c326 int hashsize; member
677 cse->hashsize = thash->hashsize; in cse_create()
679 cse->hashsize = AES_GMAC_HASH_LEN; in cse_create()
681 cse->hashsize = AES_CBC_MAC_HASH_LEN; in cse_create()
817 if (cop->mac && cse->hashsize == 0) { in cryptodev_op()
834 cod = cod_alloc(cse, 0, cop->len + cse->hashsize); in cryptodev_op()
846 if (cse->hashsize) in cryptodev_op()
943 cse->hashsize); in cryptodev_op()
1098 cse->hashsize); in cryptodev_aead()
1101 cse->hashsize); in cryptodev_aead()
[all …]
H A Dxform_rmd160.c65 .hashsize = RIPEMD160_HASH_LEN,
H A Dxform_auth.h56 uint16_t hashsize; member
H A Dxform_null.c83 .hashsize = NULL_HASH_LEN,
H A Dxform_poly1305.c84 .hashsize = POLY1305_HASH_LEN,
H A Dcryptosoft.c363 axf->Update(&ctx, aalg, axf->hashsize); in swcr_authcompute()
1013 if (csp->csp_auth_mlen < 0 || csp->csp_auth_mlen > axf->hashsize) in swcr_setup_auth()
1016 swa->sw_mlen = axf->hashsize; in swcr_setup_auth()
1112 if (csp->csp_auth_mlen < 0 || csp->csp_auth_mlen > axf->hashsize) in swcr_setup_gcm()
1115 swa->sw_mlen = axf->hashsize; in swcr_setup_gcm()
1156 if (csp->csp_auth_mlen < 0 || csp->csp_auth_mlen > axf->hashsize) in swcr_setup_ccm()
1159 swa->sw_mlen = axf->hashsize; in swcr_setup_ccm()
/f-stack/freebsd/netinet/
H A Dtcp_hostcache.c143 &VNET_NAME(tcp_hostcache.hashsize), 0,
203 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; in tcp_hc_init()
209 &V_tcp_hostcache.hashsize); in tcp_hc_init()
210 if (!powerof2(V_tcp_hostcache.hashsize)) { in tcp_hc_init()
212 V_tcp_hostcache.hashsize = TCP_HOSTCACHE_HASHSIZE; /* default */ in tcp_hc_init()
214 V_tcp_hostcache.hashmask = V_tcp_hostcache.hashsize - 1; in tcp_hc_init()
230 malloc(V_tcp_hostcache.hashsize * sizeof(struct hc_head), in tcp_hc_init()
236 for (i = 0; i < V_tcp_hostcache.hashsize; i++) { in tcp_hc_init()
273 for (i = 0; i < V_tcp_hostcache.hashsize; i++) in tcp_hc_destroy()
649 for (i = 0; i < V_tcp_hostcache.hashsize; i++) { in sysctl_tcp_hc_list()
[all …]
H A Dtcp_subr.c837 int hashsize; in maketcp_hashsize() local
848 return (hashsize); in maketcp_hashsize()
1095 int hashsize; in tcp_init() local
1114 if (hashsize == 0) { in tcp_init()
1126 if (hashsize < 512) in tcp_init()
1127 hashsize = 512; in tcp_init()
1143 hashsize = maketcp_hashsize(hashsize); in tcp_init()
1145 if (hashsize < 16) in tcp_init()
1146 hashsize = 16; in tcp_init()
1149 hashsize); in tcp_init()
[all …]
H A Dtcp_hostcache.h74 u_int hashsize; member
H A Dtcp_syncache.c191 &VNET_NAME(tcp_syncache.hashsize), 0,
251 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; in syncache_init()
257 &V_tcp_syncache.hashsize); in syncache_init()
260 if (!powerof2(V_tcp_syncache.hashsize) || in syncache_init()
261 V_tcp_syncache.hashsize == 0) { in syncache_init()
263 V_tcp_syncache.hashsize = TCP_SYNCACHE_HASHSIZE; in syncache_init()
265 V_tcp_syncache.hashmask = V_tcp_syncache.hashsize - 1; in syncache_init()
269 V_tcp_syncache.hashsize * V_tcp_syncache.bucket_limit; in syncache_init()
282 for (i = 0; i < V_tcp_syncache.hashsize; i++) { in syncache_init()
339 for (i = 0; i < V_tcp_syncache.hashsize; i++) { in syncache_destroy()
[all …]
H A Dtcp_syncache.h124 u_int hashsize; member
/f-stack/freebsd/crypto/openssl/
H A Dossl_sha256.c101 .hashsize = SHA2_224_HASH_LEN,
112 .hashsize = SHA2_256_HASH_LEN,
H A Dossl.c182 s->hash.mlen = axf->hashsize; in ossl_newsession()
243 axf->Update(&ctx, digest, axf->hashsize); in ossl_process()
H A Dossl_sha1.c68 .hashsize = SHA1_HASH_LEN,
H A Dossl_sha512.c238 .hashsize = SHA2_384_HASH_LEN,
249 .hashsize = SHA2_512_HASH_LEN,
/f-stack/freebsd/crypto/via/
H A Dpadlock_hash.c85 .hashsize = SHA1_HASH_LEN,
97 .hashsize = SHA2_256_HASH_LEN,
307 axf->Update(&ctx, hash, axf->hashsize); in padlock_authcompute()
373 ses->ses_mlen = ses->ses_axf->hashsize; in padlock_hash_setup()
/f-stack/freebsd/crypto/blake2/
H A Dblake2-sw.c89 .hashsize = BLAKE2B_OUTBYTES,
157 .hashsize = BLAKE2S_OUTBYTES,
/f-stack/app/nginx-1.16.1/conf/
H A Df-stack.conf153 net.inet.tcp.syncache.hashsize=4096
/f-stack/freebsd/crypto/ccp/
H A Dccp_hardware.c1174 if (defn->axf->hashsize > LSB_ENTRY_SIZE) in ccp_sha_copy_result()
1179 memcpy(output, buffer + 12, defn->axf->hashsize); in ccp_sha_copy_result()
1183 memcpy(output, buffer + XXX, defn->axf->hashsize); in ccp_sha_copy_result()
1187 memcpy(output, buffer, defn->axf->hashsize); in ccp_sha_copy_result()
1191 buffer + LSB_ENTRY_SIZE * 3 - defn->axf->hashsize, in ccp_sha_copy_result()
1192 defn->axf->hashsize - LSB_ENTRY_SIZE); in ccp_sha_copy_result()
1193 memcpy(output + defn->axf->hashsize - LSB_ENTRY_SIZE, buffer, in ccp_sha_copy_result()
1228 axf->Update(&auth_ctx, ihash, axf->hashsize); in ccp_do_hmac_done()
1293 roundup2(axf->hashsize, LSB_ENTRY_SIZE)); in ccp_do_hmac()

12