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)
commit32c2e6752ff0f48fe03b9e1c7c64bde580a840d2
tree82d66c533fb992e6f9f2f7dcc10f8ec0d1057314
parent6edf7a89260859c5e72861dc4e6e169495f076c8
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