Lines Matching defs:id
47 get_state_offset(int id)
49 if (id >= 5) {
51 * SHA-384 has id 5, and SHA-512 has id 6. Both use
55 + ((size_t)(id - 5) * (8 * sizeof(uint64_t)));
58 * MD5 has id 1, SHA-1 has id 2, SHA-224 has id 3 and
59 * SHA-256 has id 4. They use 32-bit words for their
65 x = id - 1;
151 br_multihash_out(const br_multihash_context *ctx, int id, void *dst)
157 hc = ctx->impl[id - 1];
161 state = (const unsigned char *)ctx + get_state_offset(id);