Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qat/include/qat_ocf_utils.h
Show All 39 Lines | is_sep_aad_supported(const struct crypto_session_params *csp) | ||||
return CPA_FALSE; | return CPA_FALSE; | ||||
} | } | ||||
static inline CpaBoolean | static inline CpaBoolean | ||||
is_use_sep_digest(const struct crypto_session_params *csp) | is_use_sep_digest(const struct crypto_session_params *csp) | ||||
{ | { | ||||
/* Use separated digest for all digest/hash operations, | /* Use separated digest for all digest/hash operations, | ||||
* including GMAC */ | * including GMAC. ETA and AEAD use separated digest | ||||
if (CSP_MODE_DIGEST == csp->csp_mode || CSP_MODE_ETA == csp->csp_mode) | * due to FW limitation to specify offset to digest | ||||
* appended to pay-load buffer. */ | |||||
if (CSP_MODE_DIGEST == csp->csp_mode || CSP_MODE_ETA == csp->csp_mode || | |||||
CSP_MODE_AEAD == csp->csp_mode) | |||||
return CPA_TRUE; | return CPA_TRUE; | ||||
return CPA_FALSE; | return CPA_FALSE; | ||||
} | } | ||||
int qat_ocf_handle_session_update(struct qat_ocf_dsession *ocf_dsession, | int qat_ocf_handle_session_update(struct qat_ocf_dsession *ocf_dsession, | ||||
struct cryptop *crp); | struct cryptop *crp); | ||||
CpaStatus qat_ocf_wait_for_session(CpaCySymSessionCtx sessionCtx, | CpaStatus qat_ocf_wait_for_session(CpaCySymSessionCtx sessionCtx, | ||||
Cpa32U timeoutMS); | Cpa32U timeoutMS); | ||||
#endif /* _QAT_OCF_UTILS_H_ */ | #endif /* _QAT_OCF_UTILS_H_ */ |