[dpdk-dev] [RFC v1 0/1] lib/cryptodev: add support of asymmetric crypto

Shally Verma shally.verma at caviumnetworks.com
Tue Jan 23 10:54:22 CET 2018


This an RFC API specification to add support for asymmetric crypto
in DPDK cryptodev library. It is derivative of earlier submitted
RFC v2 patch series by Umesh Kartha (umesh.kartha at caviumnetworks.com):
 http://dpdk.org/dev/patchwork/patch/24245/
 http://dpdk.org/dev/patchwork/patch/24246/
 http://dpdk.org/dev/patchwork/patch/24247/

and *inclusive of review comments on RFC v2* with few minor changes
to asymmetric xform structures. Current list of proposed asymmetric
algorithm is as per RFC v2.

This spec primarily addresses last open review comment regarding
queue pair management among different kind of crypto devices.

Since, crypto devices can be of different capabilities, such as:
- can perform symmetric only operations,
- can perform asymmetric only operations,
- can do both but may have different ways to manage queue pairs, such
  as, may have dedicated queues for these or may use all qp to input
  any kind of operation.

Thus, it become key design question how to enable PMDs to do crypto
operations with such different capabilities and queue arrangements.

So, current specification focuses on  defining device capabilities
and PMD operations so as to encompass all kind of anticipated crypto
devices and intend to invite discussions and feedback on same.

Current version only complete with RSA algorithm and associated params.
Others algorithm capability and params will be added subsequently.

Shally Verma (1):
  lib/cryptodev: add support of asymmetric crypto

 lib/librte_cryptodev/Makefile                  |   1 +
 lib/librte_cryptodev/rte_crypto.h              |  39 +-
 lib/librte_cryptodev/rte_crypto_asym.h         | 949 +++++++++++++++++++++++++
 lib/librte_cryptodev/rte_cryptodev.c           | 287 ++++++++
 lib/librte_cryptodev/rte_cryptodev.h           | 358 +++++++++-
 lib/librte_cryptodev/rte_cryptodev_pmd.c       |  19 +-
 lib/librte_cryptodev/rte_cryptodev_pmd.h       | 154 +++-
 lib/librte_cryptodev/rte_cryptodev_version.map |  21 +
 8 files changed, 1811 insertions(+), 17 deletions(-)
 create mode 100644 lib/librte_cryptodev/rte_crypto_asym.h

-- 
1.9.1



More information about the dev mailing list