Lines Matching refs:hc
91 const br_hash_class *hc; in br_multihash_init() local
93 hc = ctx->impl[i - 1]; in br_multihash_init()
94 if (hc != NULL) { in br_multihash_init()
97 hc->init(&g.vtable); in br_multihash_init()
98 hc->state(&g.vtable, in br_multihash_init()
129 const br_hash_class *hc; in br_multihash_update() local
131 hc = ctx->impl[i - 1]; in br_multihash_update()
132 if (hc != NULL) { in br_multihash_update()
138 hc->set_state(&g.vtable, in br_multihash_update()
140 hc->update(&g.vtable, ctx->buf, 128); in br_multihash_update()
141 hc->state(&g.vtable, state); in br_multihash_update()
153 const br_hash_class *hc; in br_multihash_out() local
157 hc = ctx->impl[id - 1]; in br_multihash_out()
158 if (hc == NULL) { in br_multihash_out()
162 hc->set_state(&g.vtable, state, ctx->count & ~(uint64_t)127); in br_multihash_out()
163 hc->update(&g.vtable, ctx->buf, ctx->count & (uint64_t)127); in br_multihash_out()
164 hc->out(&g.vtable, dst); in br_multihash_out()
165 return (hc->desc >> BR_HASHDESC_OUT_OFF) & BR_HASHDESC_OUT_MASK; in br_multihash_out()