]> git.baikalelectronics.ru Git - kernel.git/commit
ima: provide double buffering for hash calculation
authorDmitry Kasatkin <d.kasatkin@samsung.com>
Tue, 6 May 2014 11:54:27 +0000 (14:54 +0300)
committerMimi Zohar <zohar@linux.vnet.ibm.com>
Thu, 17 Jul 2014 13:35:11 +0000 (09:35 -0400)
commitf182f7ae8f06f8269b5ec68e081431bec0889e10
tree82d66c533fb992e6f9f2f7dcc10f8ec0d1057314
parentff6def8f5bc94aa709088a32927623d07498053c
ima: provide double buffering for hash calculation

The asynchronous hash API allows initiating a hash calculation and
then performing other tasks, while waiting for the hash calculation
to complete.

This patch introduces usage of double buffering for simultaneous
hashing and reading of the next chunk of data from storage.

Changes in v3:
- better comments

Signed-off-by: Dmitry Kasatkin <d.kasatkin@samsung.com>
Signed-off-by: Mimi Zohar <zohar@linux.vnet.ibm.com>
security/integrity/ima/ima_crypto.c