[RFC PATCH v6] Crypto: rockchip/crypto - add hash support for crypto engine in rk3288

2016-02-15 Thread Zain Wang
From: Zain Wang Add md5 sha1 sha256 support for crypto engine in rk3288. Signed-off-by: Zain Wang --- Changes in V6: - add software fallback. - add import/export functions. Changes in V5: - fix some mistakes with applying. Changes in V4: - remove CRYPTO_ALG_NEED_FALLBACK. Changes in V3: - ad

Re: [PATCH] arm/arm64/crypto: assure that ECB modes don't require an IV

2016-02-15 Thread Will Deacon
On Fri, Feb 12, 2016 at 06:00:01PM +0100, Ard Biesheuvel wrote: > On 12 February 2016 at 16:47, Jeremy Linton wrote: > > ECB modes don't use an initialization vector. The kernel > > /proc/crypto interface doesn't reflect this properly. > > > > Signed-off-by: Jeremy Linton > > Thanks for spotting

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

2016-02-15 Thread Stephan Mueller
Am Montag, 15. Februar 2016, 09:01:55 schrieb Salvatore Benedetto: Hi Salvatore, Herbert, > 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

[PATCH] crypto: implement DH primitives under akcipher API

2016-02-15 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