RE: [PATCH V2] crypto: implement DH primitives under akcipher API

2016-04-08 Thread Benedetto, Salvatore
l.org > Subject: Re: [PATCH V2] crypto: implement DH primitives under akcipher API > > On Thu, Mar 03, 2016 at 08:23:48AM -0800, Marcel Holtmann wrote: > > Hi Salvatore, > > > > > Implement Diffie-Hellman primitives required by the scheme under the > > > akcip

Re: [PATCH V2] crypto: implement DH primitives under akcipher API

2016-04-05 Thread Herbert Xu
On Thu, Mar 03, 2016 at 08:23:48AM -0800, Marcel Holtmann wrote: > Hi Salvatore, > > > 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()

Re: [PATCH V2] crypto: implement DH primitives under akcipher API

2016-03-03 Thread Marcel Holtmann
Hi Salvatore, > 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

[PATCH V2] crypto: implement DH primitives under akcipher API

2016-03-03 Thread Salvatore Benedetto
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