hashsize
unsigned int hashsize)
for (en = table[keynote_stringhash(name, hashsize)];
unsigned int hashsize)
h = keynote_stringhash(name, hashsize);
unsigned int hashsize, int flags)
h = keynote_stringhash(name, hashsize);
keynote_env_cleanup(struct environment **table, unsigned int hashsize)
if ((hashsize == 0) || (table == NULL))
while (hashsize > 0)
while (table[hashsize - 1] != NULL) {
en2 = table[hashsize - 1]->env_next;
keynote_free_env(table[hashsize - 1]);
table[hashsize - 1] = en2;
hashsize--;
for (i=0; i<hash->hashsize; i++)
hash->Update(hash->ctx2, dgst, hash->hashsize);
u_int8_t hashsize; /* Size of the hash */
buf = malloc(hashsize);
(unsigned long)hashsize);
LOG_DBG_BUF((LOG_MISC, 80, header, buf, hashsize));
sigsize = RSA_private_encrypt(hashsize, buf, data, sent_key,
size_t hashsize = ie->hash->hashsize;
if (GET_ISAKMP_GEN_LENGTH(payload->p) - ISAKMP_GEN_SZ != hashsize)
*hash_p = malloc(hashsize);
(unsigned long)hashsize);
memcpy(*hash_p, payload->p + ISAKMP_HASH_DATA_OFF, hashsize);
LOG_DBG_BUF((LOG_MISC, 80, header, *hash_p, hashsize));
size_t hashsize = ie->hash->hashsize, id_len;
if (len != (int)hashsize) {
(unsigned long)len, (unsigned long)hashsize);
LOG_DBG_BUF((LOG_MISC, 80, header, *hash_p, hashsize));
size_t hashsize = ie->hash->hashsize;
buf = ipsec_add_hash_payload(msg, hashsize);
hashsize));
size_t hashsize = ie->hash->hashsize, id_len;
size_t hashsize = hash->hashsize;
LOG_DBG_BUF((LOG_NEGOTIATION, 80, header, hash->digest, hashsize));
if (memcmp(*hash_p, hash->digest, hashsize) != 0) {
hash->hashsize));
hash->hashsize) != 0) {
buf = malloc(ISAKMP_HASH_SZ + hash->hashsize);
ISAKMP_HASH_SZ + (unsigned long)hash->hashsize);
ISAKMP_HASH_SZ + hash->hashsize, 1)) {
buf + ISAKMP_GEN_SZ, hash->hashsize));
buf = malloc(ISAKMP_HASH_SZ + hash->hashsize);
ISAKMP_HASH_SZ + (unsigned long)hash->hashsize);
ISAKMP_HASH_SZ + hash->hashsize, 1)) {
hash->hashsize));
if (!ipsec_add_hash_payload(msg, hash->hashsize))
ipsec_add_hash_payload(struct message *msg, size_t hashsize)
buf = malloc(ISAKMP_HASH_SZ + hashsize);
ISAKMP_HASH_SZ + (unsigned long) hashsize);
ISAKMP_HASH_SZ + hashsize, 1)) {
ISAKMP_HASH_DATA_OFF, hash->hashsize));
return ipsec_add_hash_payload(msg, hash->hashsize) == 0;
hashp = malloc(ISAKMP_HASH_SZ + hash->hashsize);
ISAKMP_HASH_SZ + (unsigned long)hash->hashsize);
ISAKMP_HASH_SZ + hash->hashsize, 1)) {
hash->hashsize))
isakmp_nat_t_cap[i].hashsize = hash->hashsize;
isakmp_nat_t_cap[i].hash = malloc(hash->hashsize);
(unsigned long)hash->hashsize);
(unsigned long)hash->hashsize));
isakmp_nat_t_cap[i].hash, hash->hashsize));
size_t buflen = cap->hashsize + ISAKMP_GEN_SZ;
memcpy(buf + ISAKMP_VENDOR_ID_OFF, cap->hash, cap->hashsize);
if (vlen != isakmp_nat_t_cap[i].hashsize) {
*hashlen = hash->hashsize;
size_t hashsize;
prf->blocksize = hash->hashsize;
if (vlen != openbsd_vendor_cap[i].hashsize) {
(unsigned long)openbsd_vendor_cap[i].hashsize));
openbsd_vendor_cap[i].hashsize = hash->hashsize;
openbsd_vendor_cap[i].hash = calloc(hash->hashsize,
(unsigned long)hash->hashsize));
openbsd_vendor_cap[i].hash, hash->hashsize));
buflen = openbsd_vendor_cap[i].hashsize + ISAKMP_GEN_SZ;
openbsd_vendor_cap[i].hashsize);
size_t hashsize;
#define hashmask(n) (hashsize(n)-1)
axf->Update(&ctx, aalg, axf->hashsize);
for (i = iskip; i < crda->crd_len; i += axf->hashsize) {
len = MIN(crda->crd_len - i, axf->hashsize - oskip);
bzero(blk + len + oskip, axf->hashsize - len - oskip);
axf->Update(&ctx, blk, axf->hashsize);
bzero(blk, axf->hashsize);
axf->Update(&ctx, blk, axf->hashsize);
bzero(blk, axf->hashsize);
axf->Update(&ctx, blk, axf->hashsize);
u_int16_t hashsize;
u_long hashsize, i;
hashsize = elements;
for (hashsize = 1; hashsize < elements; hashsize <<= 1)
hashtbl = mallocarray(hashsize, sizeof(*hashtbl), type, flags);
for (i = 0; i < hashsize; i++)
*hashmask = hashsize - 1;
u_long hashsize;
hashsize = elements;
for (hashsize = 1; hashsize < elements; hashsize <<= 1)
free(hashtbl, type, sizeof(*hashtbl) * hashsize);
in_pcbresize(struct inpcbtable *table, int hashsize)
nhashtbl = hashinit(hashsize, M_PCB, M_NOWAIT, &nmask);
nlhashtbl = hashinit(hashsize, M_PCB, M_NOWAIT, &nlmask);
hashfree(nhashtbl, hashsize, M_PCB);
table->inpt_size = hashsize;
in_pcbinit(struct inpcbtable *table, int hashsize)
table->inpt_hashtbl = hashinit(hashsize, M_PCB, M_WAITOK,
table->inpt_lhashtbl = hashinit(hashsize, M_PCB, M_WAITOK,
table->inpt_size = hashsize;
nbr_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
#define hashmask(n) (hashsize(n)-1)
lsa_cache_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
nbr_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
rde_nbr_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
lsa_cache_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
nbr_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
rde_nbr_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
nbr_init(u_int32_t hashsize)
for (hs = 1; hs < hashsize; hs <<= 1)
#define hashmask(n) (hashsize(n)-1)