linux-crypto.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Tadeusz Struk <tadeusz.struk@intel.com>
To: Herbert Xu <herbert@gondor.apana.org.au>,
	Salvatore Benedetto <salvatore.benedetto@intel.com>
Cc: linux-crypto@vger.kernel.org
Subject: Re: [PATCH] crypto: implement DH primitives under akcipher API
Date: Tue, 16 Feb 2016 12:29:33 -0800	[thread overview]
Message-ID: <56C386AD.9070403@intel.com> (raw)
In-Reply-To: <20160216201939.GB11908@gondor.apana.org.au>

On 02/16/2016 12:19 PM, Herbert Xu wrote:
> On Mon, Feb 15, 2016 at 09:01:55AM +0000, Salvatore Benedetto wrote:
>> > Implement Diffie-Hellman primitives required by the scheme under the
>> > akcipher API. Here is how it works.
>> > 1) Call set_pub_key() by passing DH parameters (p,g) in PKCS3 format
>> > 2) Call set_priv_key() to set your own private key (xa) in raw format
>> > 3) Call decrypt() without passing any data as input to get back the
>> >    public part which will be computed as g^xa mod p
>> > 4) Call encrypt() by passing the counter part public key (yb) in raw format
>> >    as input to get back the shared secret calculated as zz = yb^xa mod p
>> > 
>> > A test is included in the patch. Test vector has been generated with
>> > openssl
>> > 
>> > Signed-off-by: Salvatore Benedetto <salvatore.benedetto@intel.com>
> Who is going to use this?

OpenSSL via PF_ALG. The plan for this is to accelerate TLS handshakes in HW.
This is an RFC to get your opinion on the usage of the API.
Are you ok with the approach?
Thanks,

-- 
TS

  reply	other threads:[~2016-02-16 20:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-02-15  9:01 [PATCH] crypto: implement DH primitives under akcipher API Salvatore Benedetto
2016-02-15 13:57 ` Stephan Mueller
2016-03-01 11:08   ` Salvatore Benedetto
2016-03-01 11:17     ` Stephan Mueller
2016-03-02  9:53       ` Salvatore Benedetto
2016-03-02 13:03         ` Sandy Harris
2016-03-02 14:20           ` Stephan Mueller
2016-03-02 14:54             ` Marcel Holtmann
2016-03-02 15:09               ` Stephan Mueller
2016-02-16 20:19 ` Herbert Xu
2016-02-16 20:29   ` Tadeusz Struk [this message]
2016-03-01 20:25 ` Marcel Holtmann
2016-03-02  9:38   ` Salvatore Benedetto
2016-03-02 13:46     ` Marcel Holtmann
2016-03-07 21:45       ` Tadeusz Struk
2016-03-07 22:29         ` Marcel Holtmann
2016-03-07 23:19           ` Tadeusz Struk
2016-03-08 17:03             ` Marcel Holtmann

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=56C386AD.9070403@intel.com \
    --to=tadeusz.struk@intel.com \
    --cc=herbert@gondor.apana.org.au \
    --cc=linux-crypto@vger.kernel.org \
    --cc=salvatore.benedetto@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).