hash_size
u8 hsize, hash_size;
hash_size = sizeof(hash);
ret = eddsa_get_digest_from_priv_key(hash, &hash_size, priv_key); EG(ret, err);
MUST_HAVE((hash_size == hsize), ret, err);
VAR_ZEROIFY(hash_size);
u8 hsize, hash_size;
hash_size = sizeof(ph_hash);
ret = eddsa_compute_pre_hash(m, mlen, ph_hash, &hash_size, sig_type); EG(ret, err);
MUST_HAVE(use_message_pre_hash_hsize <= hash_size, ret, err);
hash_size = sizeof(hash);
ret = eddsa_get_digest_from_priv_key(hash, &hash_size, &(key_pair->priv_key)); EG(ret, err);
MUST_HAVE((hash_size == hsize), ret, err);
VAR_ZEROIFY(hash_size);
ctx->hash_size = hash_size;
ctx->hash_size = siphash_adjust_hash_size(ctx->hash_size);
if (ctx->hash_size == SIPHASH_MAX_DIGEST_SIZE)
if (ctx->crounds == 0 || outlen == 0 || outlen != (size_t)ctx->hash_size)
if (ctx->hash_size == SIPHASH_MAX_DIGEST_SIZE)
if (ctx->hash_size == SIPHASH_MIN_DIGEST_SIZE)
return ctx->hash_size;
static size_t siphash_adjust_hash_size(size_t hash_size)
if (hash_size == 0)
hash_size = SIPHASH_MAX_DIGEST_SIZE;
return hash_size;
int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size)
hash_size = siphash_adjust_hash_size(hash_size);
if (hash_size != SIPHASH_MIN_DIGEST_SIZE
&& hash_size != SIPHASH_MAX_DIGEST_SIZE)
ctx->hash_size = siphash_adjust_hash_size(ctx->hash_size);
if ((size_t)ctx->hash_size != hash_size) {
const int hash_size = EVP_MD_get_size(digest);
if (field_size == 0 || hash_size <= 0)
if (sm2_ctext->C3->length != hash_size) {
computed_C3 = OPENSSL_zalloc(hash_size);
if (CRYPTO_memcmp(computed_C3, C3, hash_size) != 0) {
int SipHash_set_hash_size(SIPHASH *ctx, size_t hash_size);
unsigned int hash_size;
size_t db_size, header_size, hash_size;
hash_size = br_sha256_SIZE;
hash_size = br_sha384_SIZE;
hash_size = br_sha512_SIZE;
digests[digest_count].data = malloc(hash_size);
hash_size);
digests[digest_count].hash_size = hash_size;
size_t hash_size;
switch (digest->hash_size) {
u_int sgl_len, u_int hash_size, struct cryptop *crp)
V_FW_CRYPTO_LOOKASIDE_WR_HASH_SIZE(hash_size));
if (ctl->gr_head.hash_size == 0) {
if (ctl->gr_head.hash_size == 0) {
while (++iter->_i < ctl->nh_head.hash_size) {
for (uint32_t _i = 0; _i < (_head)->hash_size; _i++) { \
for (uint32_t _i = 0; _i < (_head)->hash_size; _i++) { \
for (uint32_t _old_idx = 0; _old_idx < (_head)->hash_size; _old_idx++) {\
(_head)->hash_size = _new_hsize; \
uint32_t hash_size;
if ((head->items_count * 2 > head->hash_size) && (head->hash_size < 65536))
new_size = head->hash_size * 2;
else if ((head->items_count * 4 < head->hash_size) && head->hash_size > 16)
new_size = head->hash_size / 2;
uint32_t hash_size; \
(_head)->hash_size = _num_buckets; \
#define CHT_GET_BUCK(_head, _PX, _key) _PX##_hash_key(_key) & ((_head)->hash_size - 1)
#define CHT_GET_BUCK_OBJ(_head, _PX, _obj) _PX##_hash_obj(_obj) & ((_head)->hash_size - 1)
NL_LOG(LOG_DEBUG, "resizing hash: %u -> %u", ctl->un_head.hash_size, new_size);
value = V_dn_cfg.hash_size;
V_dn_cfg.hash_size = value;
SYSCTL_PROC(_net_inet_ip_dummynet, OID_AUTO, hash_size,
int hash_size;
ipdn_bound_var((int *)&nfs->buckets, V_dn_cfg.hash_size,
ipdn_bound_var((int *)&a.sch->buckets, V_dn_cfg.hash_size,
V_dn_cfg.hash_size = 64; /* default hash size */
V_dn_cfg.schedhash = dn_ht_init(NULL, V_dn_cfg.hash_size,
V_dn_cfg.fshash = dn_ht_init(NULL, V_dn_cfg.hash_size,
ipfw_objhash_create(uint32_t items, size_t hash_size)
sizeof(struct namedobjects_head) * hash_size +
sizeof(struct namedobjects_head) * hash_size;
ni->nn_size = hash_size;
ni->nv_size = hash_size;