Lines Matching refs:key

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