Skip to content

RFC integrity: asynchronous hash support

Dmitry Kasatkin lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ima: use ahash API for file hash calculationsecurity/integrity/ima/ima_crypto.c+176 -40 replies
2/2ima: provide double buffering for hash calculationsecurity/integrity/ima/ima_crypto.c+106 -150 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC 0/2] integrity: asynchronous hash support

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(-)
Signature · 1 line
1.8.3.2