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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

