]> git.droids-corp.org - dpdk.git/commit
cryptodev: add asym operation flags
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Wed, 1 Jun 2022 09:02:45 +0000 (10:02 +0100)
committerAkhil Goyal <gakhil@marvell.com>
Thu, 2 Jun 2022 10:04:10 +0000 (12:04 +0200)
commita9059a0131d2801e050f4dc246dfab774d711e01
treef6b2edfd3d73d0a5f46ea5be989dd4b49adce687
parent2adb85292350bc1ea9efd4f87704a1e2aa38fa54
cryptodev: add asym operation flags

- Added flags to rte_crypto_asym_op struct.
It may be shared between different algorithms.
- Added Diffie-Hellman padding flags.
Diffie-Hellman padding is used in certain protocols,
in others, leading zero bytes need to be stripped.
Even same protocol may use a different approach - most
glaring example is TLS1.2 - TLS1.3.
For ease of use, and to avoid additional copy
on certain occasions, driver should be able to return both.

Signed-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>
Acked-by: Fan Zhang <roy.fan.zhang@intel.com>
Acked-by: Akhil Goyal <gakhil@marvell.com>
lib/cryptodev/rte_crypto_asym.h