MCPcopy Create free account
hub / github.com/F-Stack/f-stack / ccp_crypto_aead

Function ccp_crypto_aead

dpdk/drivers/crypto/ccp/ccp_crypto.c:2625–2650  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2623}
2624
2625static inline int
2626ccp_crypto_aead(struct rte_crypto_op *op,
2627 struct ccp_queue *cmd_q,
2628 struct ccp_batch_info *b_info)
2629{
2630 int result = 0;
2631 struct ccp_session *session;
2632
2633 session = CRYPTODEV_GET_SYM_SESS_PRIV(op->sym->session);
2634
2635 switch (session->auth.algo) {
2636 case CCP_AUTH_ALGO_AES_GCM:
2637 if (session->cipher.algo != CCP_CIPHER_ALGO_AES_GCM) {
2638 CCP_LOG_ERR("Incorrect chain order");
2639 return -1;
2640 }
2641 result = ccp_perform_aes_gcm(op, cmd_q);
2642 b_info->desccnt += 5;
2643 break;
2644 default:
2645 CCP_LOG_ERR("Unsupported aead algo %d",
2646 session->aead_algo);
2647 return -ENOTSUP;
2648 }
2649 return result;
2650}
2651
2652int
2653process_ops_to_enqueue(struct ccp_qp *qp,

Callers 1

process_ops_to_enqueueFunction · 0.85

Calls 1

ccp_perform_aes_gcmFunction · 0.85

Tested by

no test coverage detected