Lines Matching refs:enc_key
267 const struct internal_aes_gcm_key *enc_key, in operation_final() argument
273 res = __gcm_update_payload(state, enc_key, m, src, len, dst); in operation_final()
291 const struct internal_aes_gcm_key *enc_key, in __gcm_enc_final() argument
300 res = operation_final(state, enc_key, TEE_MODE_ENCRYPT, src, len, dst); in __gcm_enc_final()
319 const struct internal_aes_gcm_key *enc_key, in __gcm_dec_final() argument
328 res = operation_final(state, enc_key, TEE_MODE_DECRYPT, src, len, dst); in __gcm_dec_final()
370 TEE_Result internal_aes_gcm_enc(const struct internal_aes_gcm_key *enc_key, in internal_aes_gcm_enc() argument
379 res = __gcm_init(&state, enc_key, TEE_MODE_ENCRYPT, nonce, nonce_len, in internal_aes_gcm_enc()
390 return __gcm_enc_final(&state, enc_key, src, len, dst, tag, tag_len); in internal_aes_gcm_enc()
393 TEE_Result internal_aes_gcm_dec(const struct internal_aes_gcm_key *enc_key, in internal_aes_gcm_dec() argument
402 res = __gcm_init(&state, enc_key, TEE_MODE_DECRYPT, nonce, nonce_len, in internal_aes_gcm_dec()
413 return __gcm_dec_final(&state, enc_key, src, len, dst, tag, tag_len); in internal_aes_gcm_dec()