Searched refs:hash_cd_ctrl (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/crypto/qat/qat_common/
H A Dqat_algs.c289 struct icp_qat_fw_auth_cd_ctrl_hdr *hash_cd_ctrl = ptr; qat_alg_aead_init_enc_session() local
322 hash_cd_ctrl->hash_cfg_offset = ((char *)hash - (char *)cipher) >> 3; qat_alg_aead_init_enc_session()
323 hash_cd_ctrl->hash_flags = ICP_QAT_FW_AUTH_HDR_FLAG_NO_NESTED; qat_alg_aead_init_enc_session()
324 hash_cd_ctrl->inner_res_sz = digestsize; qat_alg_aead_init_enc_session()
325 hash_cd_ctrl->final_sz = digestsize; qat_alg_aead_init_enc_session()
329 hash_cd_ctrl->inner_state1_sz = qat_alg_aead_init_enc_session()
331 hash_cd_ctrl->inner_state2_sz = qat_alg_aead_init_enc_session()
335 hash_cd_ctrl->inner_state1_sz = ICP_QAT_HW_SHA256_STATE1_SZ; qat_alg_aead_init_enc_session()
336 hash_cd_ctrl->inner_state2_sz = ICP_QAT_HW_SHA256_STATE2_SZ; qat_alg_aead_init_enc_session()
339 hash_cd_ctrl->inner_state1_sz = ICP_QAT_HW_SHA512_STATE1_SZ; qat_alg_aead_init_enc_session()
340 hash_cd_ctrl->inner_state2_sz = ICP_QAT_HW_SHA512_STATE2_SZ; qat_alg_aead_init_enc_session()
345 hash_cd_ctrl->inner_state2_offset = hash_cd_ctrl->hash_cfg_offset + qat_alg_aead_init_enc_session()
347 round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3); qat_alg_aead_init_enc_session()
348 ICP_QAT_FW_COMN_CURR_ID_SET(hash_cd_ctrl, ICP_QAT_FW_SLICE_AUTH); qat_alg_aead_init_enc_session()
349 ICP_QAT_FW_COMN_NEXT_ID_SET(hash_cd_ctrl, ICP_QAT_FW_SLICE_DRAM_WR); qat_alg_aead_init_enc_session()
371 struct icp_qat_fw_auth_cd_ctrl_hdr *hash_cd_ctrl = ptr; qat_alg_aead_init_dec_session() local
412 hash_cd_ctrl->hash_cfg_offset = 0; qat_alg_aead_init_dec_session()
413 hash_cd_ctrl->hash_flags = ICP_QAT_FW_AUTH_HDR_FLAG_NO_NESTED; qat_alg_aead_init_dec_session()
414 hash_cd_ctrl->inner_res_sz = digestsize; qat_alg_aead_init_dec_session()
415 hash_cd_ctrl->final_sz = digestsize; qat_alg_aead_init_dec_session()
419 hash_cd_ctrl->inner_state1_sz = qat_alg_aead_init_dec_session()
421 hash_cd_ctrl->inner_state2_sz = qat_alg_aead_init_dec_session()
425 hash_cd_ctrl->inner_state1_sz = ICP_QAT_HW_SHA256_STATE1_SZ; qat_alg_aead_init_dec_session()
426 hash_cd_ctrl->inner_state2_sz = ICP_QAT_HW_SHA256_STATE2_SZ; qat_alg_aead_init_dec_session()
429 hash_cd_ctrl->inner_state1_sz = ICP_QAT_HW_SHA512_STATE1_SZ; qat_alg_aead_init_dec_session()
430 hash_cd_ctrl->inner_state2_sz = ICP_QAT_HW_SHA512_STATE2_SZ; qat_alg_aead_init_dec_session()
436 hash_cd_ctrl->inner_state2_offset = hash_cd_ctrl->hash_cfg_offset + qat_alg_aead_init_dec_session()
438 round_up(hash_cd_ctrl->inner_state1_sz, 8)) >> 3); qat_alg_aead_init_dec_session()
440 ICP_QAT_FW_COMN_CURR_ID_SET(hash_cd_ctrl, ICP_QAT_FW_SLICE_AUTH); qat_alg_aead_init_dec_session()
441 ICP_QAT_FW_COMN_NEXT_ID_SET(hash_cd_ctrl, ICP_QAT_FW_SLICE_CIPHER); qat_alg_aead_init_dec_session()

Completed in 59 milliseconds