DPDK patches and discussions
 help / color / mirror / Atom feed
From: Akhil Goyal <gakhil@marvell.com>
To: "Kusztal, ArkadiuszX" <arkadiuszx.kusztal@intel.com>,
	Anoob Joseph <anoobj@marvell.com>,
	"Zhang, Roy Fan" <roy.fan.zhang@intel.com>
Cc: "dev@dpdk.org" <dev@dpdk.org>, Ramkumar Balu <rbalu@marvell.com>
Subject: RE: [RFC] cryptodev: asymmetric crypto random number source
Date: Mon, 13 Dec 2021 08:14:12 +0000	[thread overview]
Message-ID: <CO6PR18MB4484EFAA0A3347AC32E30F82D8749@CO6PR18MB4484.namprd18.prod.outlook.com> (raw)
In-Reply-To: <PH0PR11MB50131E8565E698E8D7E581379F6A9@PH0PR11MB5013.namprd11.prod.outlook.com>

[-- Attachment #1: Type: text/plain, Size: 1147 bytes --]

++Ram for openssl

ECDSA op:
rte_crypto_param k;
               /**< The ECDSA per-message secret number, which is an integer
               * in the interval (1, n-1)
               */
DSA op:
               No 'k'.

This one I think have described some time ago:
Only PMD that verifies ECDSA is OCTEON which apparently needs 'k' provided by user.
Only PMD that verifies DSA is OpenSSL PMD which will generate its own random number internally.

So in case PMD supports one of these options (or especially when supports both) we need to give some information here.

The most obvious option would be to change rte_crypto_param k -> rte_crypto_param *k
In case (k == NULL) PMD should generate it itself if possible, otherwise it should push crypto_op to the response ring with appropriate error code.

Another options would be:

  *   Extend rte_cryptodev_config and rte_cryptodev_info with information about random number generator for specific device (though it would be ABI breakage)
  *   Provide some kind of callback to get random number from user (which could be useful for other things like RSA padding as well)




[-- Attachment #2: Type: text/html, Size: 9006 bytes --]

  reply	other threads:[~2021-12-13  8:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-12-03 10:03 Kusztal, ArkadiuszX
2021-12-13  8:14 ` Akhil Goyal [this message]
2021-12-13  9:27   ` Ramkumar Balu
2021-12-17 15:26     ` Kusztal, ArkadiuszX

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CO6PR18MB4484EFAA0A3347AC32E30F82D8749@CO6PR18MB4484.namprd18.prod.outlook.com \
    --to=gakhil@marvell.com \
    --cc=anoobj@marvell.com \
    --cc=arkadiuszx.kusztal@intel.com \
    --cc=dev@dpdk.org \
    --cc=rbalu@marvell.com \
    --cc=roy.fan.zhang@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).