Re: [PATCH v1 1/3] ima: use ahash API for file hash calculation

2014-06-30 Thread Mimi Zohar
On Mon, 2014-06-30 at 17:58 +0300, Dmitry Kasatkin wrote: > On 26/06/14 14:54, Mimi Zohar wrote: > > On Thu, 2014-06-19 at 18:20 +0300, Dmitry Kasatkin wrote: > >> @@ -156,7 +316,7 @@ out: > >>return rc; > >> } > >> > >> -int ima_calc_file_hash(struct file *file, struct ima_digest_data *hash

Re: [PATCH v1 1/3] ima: use ahash API for file hash calculation

2014-06-30 Thread Dmitry Kasatkin
On 26/06/14 14:54, Mimi Zohar wrote: > On Thu, 2014-06-19 at 18:20 +0300, Dmitry Kasatkin wrote: >> Async hash API allows to use HW acceleration for hash calculation. >> It may give significant performance gain or/and reduce power consumption, >> which might be very beneficial for battery powered d

Re: [PATCH v1 1/3] ima: use ahash API for file hash calculation

2014-06-26 Thread Mimi Zohar
On Thu, 2014-06-19 at 18:20 +0300, Dmitry Kasatkin wrote: > Async hash API allows to use HW acceleration for hash calculation. > It may give significant performance gain or/and reduce power consumption, > which might be very beneficial for battery powered devices. > > This patch introduces hash ca

Re: [PATCH v1 1/3] ima: use ahash API for file hash calculation

2014-06-24 Thread Dmitry Kasatkin
On 23/06/14 14:32, Mimi Zohar wrote: > On Thu, 2014-06-19 at 18:20 +0300, Dmitry Kasatkin wrote: >> Async hash API allows to use HW acceleration for hash calculation. >> It may give significant performance gain or/and reduce power consumption, >> which might be very beneficial for battery powered

Re: [PATCH v1 1/3] ima: use ahash API for file hash calculation

2014-06-23 Thread Mimi Zohar
On Thu, 2014-06-19 at 18:20 +0300, Dmitry Kasatkin wrote: > Async hash API allows to use HW acceleration for hash calculation. > It may give significant performance gain or/and reduce power consumption, > which might be very beneficial for battery powered devices. > > This patch introduces hash c

[PATCH v1 1/3] ima: use ahash API for file hash calculation

2014-06-19 Thread Dmitry Kasatkin
Async hash API allows to use HW acceleration for hash calculation. It may give significant performance gain or/and reduce power consumption, which might be very beneficial for battery powered devices. This patch introduces hash calculation using ahash API. ahash peformance depends on data size an