Lines Matching refs:key
42 static void nh_generic(const u32 *key, const u8 *message, size_t message_len,
56 sums[0] += (u64)(u32)(m0 + key[ 0]) * (u32)(m2 + key[ 2]);
57 sums[1] += (u64)(u32)(m0 + key[ 4]) * (u32)(m2 + key[ 6]);
58 sums[2] += (u64)(u32)(m0 + key[ 8]) * (u32)(m2 + key[10]);
59 sums[3] += (u64)(u32)(m0 + key[12]) * (u32)(m2 + key[14]);
60 sums[0] += (u64)(u32)(m1 + key[ 1]) * (u32)(m3 + key[ 3]);
61 sums[1] += (u64)(u32)(m1 + key[ 5]) * (u32)(m3 + key[ 7]);
62 sums[2] += (u64)(u32)(m1 + key[ 9]) * (u32)(m3 + key[11]);
63 sums[3] += (u64)(u32)(m1 + key[13]) * (u32)(m3 + key[15]);
64 key += NH_MESSAGE_UNIT / sizeof(key[0]);
77 const struct nhpoly1305_key *key)
81 poly1305_core_blocks(&state->poly_state, &key->poly_key, state->nh_hash,
93 const struct nhpoly1305_key *key,
102 nh_fn(key->nh_key, src, bytes, state->nh_hash);
112 nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash);
119 process_nh_hash_value(state, key);
126 const u8 *key, unsigned int keylen)
134 poly1305_core_setkey(&ctx->poly_key, key);
135 key += POLY1305_BLOCK_SIZE;
138 ctx->nh_key[i] = get_unaligned_le32(key + i * sizeof(u32));
160 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm);
169 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT,
178 nhpoly1305_units(state, key, src, bytes, nh_fn);
201 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm);
206 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT,
211 process_nh_hash_value(state, key);