]> 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)
commit0871d4cdc93516d728401a6604c17ba4c47e883f
tree82d66c533fb992e6f9f2f7dcc10f8ec0d1057314
parenta1617c39737b5180ce3178f432736ec2a2f05abb
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