Home
last modified time | relevance | path

Searched refs:ghash_key (Results 1 – 5 of 5) sorted by relevance

/optee_os/core/crypto/
H A Daes-gcm-ghash-tbl.c48 void internal_aes_gcm_ghash_gen_tbl(struct internal_ghash_key *ghash_key, in internal_aes_gcm_ghash_gen_tbl() argument
62 ghash_key->HL[8] = vl; in internal_aes_gcm_ghash_gen_tbl()
63 ghash_key->HH[8] = vh; in internal_aes_gcm_ghash_gen_tbl()
66 ghash_key->HH[0] = 0; in internal_aes_gcm_ghash_gen_tbl()
67 ghash_key->HL[0] = 0; in internal_aes_gcm_ghash_gen_tbl()
75 ghash_key->HL[i] = vl; in internal_aes_gcm_ghash_gen_tbl()
76 ghash_key->HH[i] = vh; in internal_aes_gcm_ghash_gen_tbl()
80 uint64_t *HiL = ghash_key->HL + i; in internal_aes_gcm_ghash_gen_tbl()
81 uint64_t *HiH = ghash_key->HH + i; in internal_aes_gcm_ghash_gen_tbl()
86 HiH[j] = vh ^ ghash_key->HH[j]; in internal_aes_gcm_ghash_gen_tbl()
[all …]
H A Daes-gcm-sw.c17 internal_aes_gcm_ghash_gen_tbl(&state->ghash_key, ek); in internal_aes_gcm_set_key()
20 state->ctr, state->ghash_key.hash_subkey); in internal_aes_gcm_set_key()
31 internal_aes_gcm_ghash_mult_tbl(&state->ghash_key, y, y); in ghash_update_block()
33 internal_aes_gcm_gfmul(state->ghash_key.hash_subkey, y, y); in ghash_update_block()
/optee_os/core/arch/arm/crypto/
H A Daes-gcm-ce.c55 ghash_reflect(state->ghash_key.h, k); in internal_aes_gcm_set_key()
58 ghash_reflect(state->ghash_key.h2, h); in internal_aes_gcm_set_key()
61 ghash_reflect(state->ghash_key.h3, h); in internal_aes_gcm_set_key()
64 ghash_reflect(state->ghash_key.h4, h); in internal_aes_gcm_set_key()
69 const struct internal_ghash_key *ghash_key, in pmull_ghash_update() argument
73 pmull_ghash_update_p64(num_blocks, dg, src, ghash_key, head); in pmull_ghash_update()
75 pmull_ghash_update_p8(num_blocks, dg, src, ghash_key, head); in pmull_ghash_update()
90 pmull_ghash_update(num_blocks, dg, data, &state->ghash_key, head); in internal_aes_gcm_ghash_update()
106 pmull_ghash_update(1, dg, buf_cryp, &state->ghash_key, NULL); in encrypt_pl()
125 pmull_ghash_update(1, dg, src, &state->ghash_key, NULL); in decrypt_pl()
[all …]
/optee_os/core/arch/arm/include/crypto/
H A Dghash-ce-core.h19 const struct internal_ghash_key *ghash_key,
22 const struct internal_ghash_key *ghash_key,
29 const struct internal_ghash_key *ghash_key,
36 const struct internal_ghash_key *ghash_key,
/optee_os/core/include/crypto/
H A Dinternal_aes-gcm.h37 struct internal_ghash_key ghash_key; member
108 void internal_aes_gcm_ghash_gen_tbl(struct internal_ghash_key *ghash_key,
110 void internal_aes_gcm_ghash_mult_tbl(struct internal_ghash_key *ghash_key,