cryptodev: clarify usage of random numbers in asym
authorArek Kusztal <arkadiuszx.kusztal@intel.com>
Fri, 11 Feb 2022 16:02:36 +0000 (16:02 +0000)
committerAkhil Goyal <gakhil@marvell.com>
Sat, 12 Feb 2022 10:19:51 +0000 (11:19 +0100)
commitbaf482c0e39a23d35c1970149ebe21a6f27cb9ac
tree479dc3257d454df5099f92cb343be3e171f9fa94
parenta678c5d365899a5649d6260a500ce377767bc953
cryptodev: clarify usage of random numbers in asym

This commit clarifies usage of random numbers in asymmetric
crypto API.

The user is now allowed to provide information to the PMD if random
number should be generated or should be read from user input.
If PMD does not support random number generation user should
always provide it, if PMD does not support user random,
rte_crypto_param.data accordingly should be set to NULL.

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