Re: [PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure

2016-02-05 Thread Herbert Xu
On Tue, Feb 02, 2016 at 09:56:45PM +0800, Rui Wang wrote: > > >From 4bcb73adbef99aada94c49f352063619aa24d43d Mon Sep 17 00:00:00 2001 > From: Rui Wang > Date: Mon, 14 Dec 2015 17:22:13 +0800 > Subject: [PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure > > modprob

Re: [PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure

2016-02-02 Thread Rui Wang
So a better version is as follows: (just removed the call to crypto_shash_init()) >From 4bcb73adbef99aada94c49f352063619aa24d43d Mon Sep 17 00:00:00 2001 From: Rui Wang Date: Mon, 14 Dec 2015 17:22:13 +0800 Subject: [PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure modprobe sha1_mb fails wit

Re: [PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure

2016-02-01 Thread Herbert Xu
On Wed, Jan 27, 2016 at 05:08:35PM +0800, Rui Wang wrote: > > +static int sha1_mb_async_import(struct ahash_request *req, const void *in) > +{ > + struct ahash_request *mcryptd_req = ahash_request_ctx(req); > + struct crypto_ahash *tfm = crypto_ahash_reqtfm(req); > + struct sha1_mb_ctx

[PATCH v2 1/4] crypto x86/sha1_mb: Fix load failure

2016-01-27 Thread Rui Wang
modprobe sha1_mb fails with the following message: modprobe: ERROR: could not insert 'sha1_mb': No such device It is because it needs to set its statesize and implement its import() and export() interface. Signed-off-by: Rui Wang --- arch/x86/crypto/sha-mb/sha1_mb.c | 39 ++