mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [RFC 0/2] integrity: asynchronous hash support
@ 2014-02-28 15:07 Dmitry Kasatkin
  2014-02-28 15:07 ` [RFC 1/2] ima: use ahash API for file hash calculation Dmitry Kasatkin
  2014-02-28 15:07 ` [RFC 2/2] ima: provide double buffering for " Dmitry Kasatkin
  0 siblings, 2 replies; 3+ messages in thread
From: Dmitry Kasatkin @ 2014-02-28 15:07 UTC (permalink / raw)
  To: linux-security-module, zohar
  Cc: jmorris, linux-kernel, casey.schaufler, dmitry.kasatkin, Dmitry Kasatkin

HW accelerated hash calculation is available only via ahash API.

First patch introduces usage of ahash API for file hash calculation.
It allows to offload hash calculation to HW accelerator and release CPU
time to do other usefull job. It might speedup hash calculation but also
reduce power consumption on battery powered devices.

'ima_use_ahash' kernel parameter allows to select between synchronous
and asynchronous hash calculation methods. It allows to measure performance
differences between methods.

Second patch introduces usage of double buffering what allows perform
file IO simulteneously with hash calculation.

- Dmitry

Dmitry Kasatkin (2):
  ima: use ahash API for file hash calculation
  ima: provide double buffering for hash calculation

 security/integrity/ima/ima_crypto.c | 269 +++++++++++++++++++++++++++++++++++-
 1 file changed, 266 insertions(+), 3 deletions(-)

-- 
1.8.3.2


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2014-02-28 15:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-28 15:07 [RFC 0/2] integrity: asynchronous hash support Dmitry Kasatkin
2014-02-28 15:07 ` [RFC 1/2] ima: use ahash API for file hash calculation Dmitry Kasatkin
2014-02-28 15:07 ` [RFC 2/2] ima: provide double buffering for " Dmitry Kasatkin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome