• Home
  • Raw
  • Download

Lines Matching refs:key

41 static void nh_generic(const u32 *key, const u8 *message, size_t message_len,  in nh_generic()  argument
55 sums[0] += (u64)(u32)(m0 + key[ 0]) * (u32)(m2 + key[ 2]); in nh_generic()
56 sums[1] += (u64)(u32)(m0 + key[ 4]) * (u32)(m2 + key[ 6]); in nh_generic()
57 sums[2] += (u64)(u32)(m0 + key[ 8]) * (u32)(m2 + key[10]); in nh_generic()
58 sums[3] += (u64)(u32)(m0 + key[12]) * (u32)(m2 + key[14]); in nh_generic()
59 sums[0] += (u64)(u32)(m1 + key[ 1]) * (u32)(m3 + key[ 3]); in nh_generic()
60 sums[1] += (u64)(u32)(m1 + key[ 5]) * (u32)(m3 + key[ 7]); in nh_generic()
61 sums[2] += (u64)(u32)(m1 + key[ 9]) * (u32)(m3 + key[11]); in nh_generic()
62 sums[3] += (u64)(u32)(m1 + key[13]) * (u32)(m3 + key[15]); in nh_generic()
63 key += NH_MESSAGE_UNIT / sizeof(key[0]); in nh_generic()
76 const struct nhpoly1305_key *key) in process_nh_hash_value() argument
80 poly1305_core_blocks(&state->poly_state, &key->poly_key, state->nh_hash, in process_nh_hash_value()
92 const struct nhpoly1305_key *key, in nhpoly1305_units() argument
101 nh_fn(key->nh_key, src, bytes, state->nh_hash); in nhpoly1305_units()
111 nh_fn(&key->nh_key[pos / 4], src, bytes, tmp_hash); in nhpoly1305_units()
118 process_nh_hash_value(state, key); in nhpoly1305_units()
125 const u8 *key, unsigned int keylen) in crypto_nhpoly1305_setkey() argument
133 poly1305_core_setkey(&ctx->poly_key, key); in crypto_nhpoly1305_setkey()
134 key += POLY1305_BLOCK_SIZE; in crypto_nhpoly1305_setkey()
137 ctx->nh_key[i] = get_unaligned_le32(key + i * sizeof(u32)); in crypto_nhpoly1305_setkey()
159 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); in crypto_nhpoly1305_update_helper() local
168 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, in crypto_nhpoly1305_update_helper()
177 nhpoly1305_units(state, key, src, bytes, nh_fn); in crypto_nhpoly1305_update_helper()
200 const struct nhpoly1305_key *key = crypto_shash_ctx(desc->tfm); in crypto_nhpoly1305_final_helper() local
205 nhpoly1305_units(state, key, state->buffer, NH_MESSAGE_UNIT, in crypto_nhpoly1305_final_helper()
210 process_nh_hash_value(state, key); in crypto_nhpoly1305_final_helper()