[PATCH 1/4] crypto: add dsa random number k

Zhang, Roy Fan roy.fan.zhang at intel.com
Fri Feb 4 11:02:45 CET 2022


> -----Original Message-----
> From: Kusztal, ArkadiuszX <arkadiuszx.kusztal at intel.com>
> Sent: Wednesday, February 2, 2022 6:50 AM
> To: dev at dpdk.org
> Cc: gakhil at marvell.com; Zhang, Roy Fan <roy.fan.zhang at intel.com>;
> rbalu at marvell.com; Kusztal, ArkadiuszX <arkadiuszx.kusztal at intel.com>
> Subject: [PATCH 1/4] crypto: add dsa random number k
> 
> This commit adds random number 'k' to dsa
> op param struct.
> 
> Signed-off-by: Arek Kusztal <arkadiuszx.kusztal at intel.com>
> ---
>  lib/cryptodev/rte_crypto_asym.h | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/lib/cryptodev/rte_crypto_asym.h
> b/lib/cryptodev/rte_crypto_asym.h
> index 9c866f553f..e0def3d9ab 100644
> --- a/lib/cryptodev/rte_crypto_asym.h
> +++ b/lib/cryptodev/rte_crypto_asym.h
> @@ -547,6 +547,10 @@ struct rte_crypto_dsa_op_param {
>  	/**< Signature Generation or Verification */
>  	rte_crypto_param message;
>  	/**< input message to be signed or verified */
> +	rte_crypto_param k;
> +	/**< Per-message secret number, which is an integer
> +	 * in the interval (1, q-1)
> +	 */
>  	rte_crypto_param r;
>  	/**< dsa sign component 'r' value
>  	 *
> --
> 2.13.6
Acked-by: Fan Zhang <roy.fan.zhang at intel.com>


More information about the dev mailing list