Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/qat/qat_api/common/include/lac_sal_types_crypto.h
Show All 10 Lines | |||||
* Generic crypto instance type definition | * Generic crypto instance type definition | ||||
* | * | ||||
***************************************************************************/ | ***************************************************************************/ | ||||
#ifndef LAC_SAL_TYPES_CRYPTO_H_ | #ifndef LAC_SAL_TYPES_CRYPTO_H_ | ||||
#define LAC_SAL_TYPES_CRYPTO_H_ | #define LAC_SAL_TYPES_CRYPTO_H_ | ||||
#include "lac_sym_qat_hash_defs_lookup.h" | #include "lac_sym_qat_hash_defs_lookup.h" | ||||
#include "lac_sym_qat_constants_table.h" | |||||
#include "lac_sym_key.h" | #include "lac_sym_key.h" | ||||
#include "cpa_cy_sym_dp.h" | #include "cpa_cy_sym_dp.h" | ||||
#include "icp_adf_debug.h" | #include "icp_adf_debug.h" | ||||
#include "lac_sal_types.h" | #include "lac_sal_types.h" | ||||
#include "icp_adf_transport.h" | #include "icp_adf_transport.h" | ||||
#include "lac_mem_pools.h" | #include "lac_mem_pools.h" | ||||
▲ Show 20 Lines • Show All 52 Lines • ▼ Show 20 Lines | typedef struct sal_crypto_service_s { | ||||
QatUtilsAtomic *pLacPrimeStatsArr; | QatUtilsAtomic *pLacPrimeStatsArr; | ||||
/**< pointer to an array of atomic stats for prime */ | /**< pointer to an array of atomic stats for prime */ | ||||
QatUtilsAtomic *pLacLnStatsArr; | QatUtilsAtomic *pLacLnStatsArr; | ||||
/**< pointer to an array of atomic stats for large number */ | /**< pointer to an array of atomic stats for large number */ | ||||
QatUtilsAtomic *pLacDrbgStatsArr; | QatUtilsAtomic *pLacDrbgStatsArr; | ||||
/**< pointer to an array of atomic stats for DRBG */ | /**< pointer to an array of atomic stats for DRBG */ | ||||
icp_qat_hw_auth_mode_t qatHmacMode; | |||||
/**< Hmac Mode */ | |||||
Cpa32U pkeFlowId; | Cpa32U pkeFlowId; | ||||
/**< Flow ID for all pke requests from this instance - identifies | /**< Flow ID for all pke requests from this instance - identifies | ||||
accelerator | accelerator | ||||
and execution engine to use */ | and execution engine to use */ | ||||
icp_comms_trans_handle trans_handle_sym_tx; | icp_comms_trans_handle trans_handle_sym_tx; | ||||
icp_comms_trans_handle trans_handle_sym_rx; | icp_comms_trans_handle trans_handle_sym_rx; | ||||
icp_comms_trans_handle trans_handle_asym_tx; | icp_comms_trans_handle trans_handle_asym_tx; | ||||
icp_comms_trans_handle trans_handle_asym_rx; | icp_comms_trans_handle trans_handle_asym_rx; | ||||
icp_comms_trans_handle trans_handle_nrbg_tx; | icp_comms_trans_handle trans_handle_nrbg_tx; | ||||
icp_comms_trans_handle trans_handle_nrbg_rx; | icp_comms_trans_handle trans_handle_nrbg_rx; | ||||
Cpa32U maxNumSymReqBatch; | Cpa32U maxNumSymReqBatch; | ||||
/**< Maximum number of requests that can be placed on the sym tx ring | /**< Maximum number of requests that can be placed on the sym tx ring | ||||
for any one batch request (DP api) */ | for any one batch request (DP api) */ | ||||
Cpa16U acceleratorNum; | Cpa16U acceleratorNum; | ||||
Cpa16U bankNum; | Cpa16U bankNum; | ||||
Cpa16U bankNumAsym; | |||||
Cpa16U bankNumSym; | |||||
Cpa16U pkgID; | Cpa16U pkgID; | ||||
Cpa8U isPolled; | Cpa8U isPolled; | ||||
Cpa8U executionEngine; | Cpa8U executionEngine; | ||||
Cpa32U coreAffinity; | Cpa32U coreAffinity; | ||||
Cpa32U nodeAffinity; | Cpa32U nodeAffinity; | ||||
/**< Config Info */ | /**< Config Info */ | ||||
CpaCySymDpCbFunc pSymDpCb; | CpaCySymDpCbFunc pSymDpCb; | ||||
/**< Sym DP Callback */ | /**< Sym DP Callback */ | ||||
lac_sym_qat_hash_defs_t **pLacHashLookupDefs; | lac_sym_qat_hash_defs_t **pLacHashLookupDefs; | ||||
/**< table of pointers to standard defined information for all hash | /**< table of pointers to standard defined information for all hash | ||||
algorithms. We support an extra hash algo that is not exported by | algorithms. We support an extra hash algo that is not exported by | ||||
cy api which is why we need the extra +1 */ | cy api which is why we need the extra +1 */ | ||||
lac_sym_qat_constants_t constantsLookupTables; | |||||
Cpa8U **ppHmacContentDesc; | Cpa8U **ppHmacContentDesc; | ||||
/**< table of pointers to CD for Hmac precomputes - used at session init | /**< table of pointers to CD for Hmac precomputes - used at session init | ||||
*/ | */ | ||||
Cpa8U *pSslLabel; | Cpa8U *pSslLabel; | ||||
/**< pointer to memory holding the standard SSL label ABBCCC.. */ | /**< pointer to memory holding the standard SSL label ABBCCC.. */ | ||||
lac_sym_key_tls_labels_t *pTlsLabel; | lac_sym_key_tls_labels_t *pTlsLabel; | ||||
/**< pointer to memory holding the 4 standard TLS labels */ | /**< pointer to memory holding the 4 standard TLS labels */ | ||||
QatUtilsAtomic drbgErrorState; | QatUtilsAtomic drbgErrorState; | ||||
/**< DRBG related variables */ | /**< DRBG related variables */ | ||||
lac_sym_key_tls_hkdf_sub_labels_t *pTlsHKDFSubLabel; | lac_sym_key_tls_hkdf_sub_labels_t *pTlsHKDFSubLabel; | ||||
/**< pointer to memory holding the 4 HKDFLabels sublabels */ | /**< pointer to memory holding the 4 HKDFLabels sublabels */ | ||||
debug_file_info_t *debug_file; | debug_file_info_t *debug_file; | ||||
/**< Statistics handler */ | /**< Statistics handler */ | ||||
CpaBoolean forceAEADMacVerify; | |||||
/**< internal flag to enable/disable forcing HW digest verification for | |||||
GCM and CCM algorithms */ | |||||
} sal_crypto_service_t; | } sal_crypto_service_t; | ||||
/************************************************************************* | /************************************************************************* | ||||
* @ingroup cpaCyCommon | * @ingroup cpaCyCommon | ||||
* @description | * @description | ||||
* This function returns a valid asym/sym/crypto instance handle for the | * This function returns a valid asym/sym/crypto instance handle for the | ||||
* system if it exists. When requesting an instance handle of type sym or | * system if it exists. When requesting an instance handle of type sym or | ||||
* asym, if either is not found then a crypto instance handle is returned | * asym, if either is not found then a crypto instance handle is returned | ||||
Show All 32 Lines |