Home
last modified time | relevance | path

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

/optee_os-3.20.0/core/crypto/
A Daes-gcm-ghash-tbl.c63 ghash_key->HL[8] = vl; in internal_aes_gcm_ghash_gen_tbl()
64 ghash_key->HH[8] = vh; in internal_aes_gcm_ghash_gen_tbl()
67 ghash_key->HH[0] = 0; in internal_aes_gcm_ghash_gen_tbl()
68 ghash_key->HL[0] = 0; in internal_aes_gcm_ghash_gen_tbl()
76 ghash_key->HL[i] = vl; in internal_aes_gcm_ghash_gen_tbl()
77 ghash_key->HH[i] = vh; in internal_aes_gcm_ghash_gen_tbl()
119 zh = ghash_key->HH[lo]; in internal_aes_gcm_ghash_mult_tbl()
120 zl = ghash_key->HL[lo]; in internal_aes_gcm_ghash_mult_tbl()
131 zh ^= ghash_key->HH[lo]; in internal_aes_gcm_ghash_mult_tbl()
139 zh ^= ghash_key->HH[hi]; in internal_aes_gcm_ghash_mult_tbl()
[all …]
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-3.20.0/core/arch/arm/crypto/
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()
106 pmull_ghash_update(1, dg, buf_cryp, &state->ghash_key, NULL); in encrypt_pl()
127 pmull_ghash_update(1, dg, src, &state->ghash_key, NULL); in decrypt_pl()
161 pmull_gcm_encrypt(num_blocks, dg, dst, src, &state->ghash_key, in update_payload_2block()
[all …]
/optee_os-3.20.0/core/arch/arm/include/crypto/
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-3.20.0/core/include/crypto/
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,

Completed in 6 milliseconds