Herbert: Perhaps this is very fundamential, but what is the difference between synchronous and asynchronous as far as crypto is concerned? My device performs encryption and decryption asynchronously in relation to the main processor in the system. The driver tells the device to do x, then goes away and does other stuff, then gets an interrupt when the device is done and ready. The user space app waits for the device to finish, but the kernel is doing other stuff in the meantime. Truly, Mark Allyn Portland, Oregon www.allyn.com 971-563-7588
You should use shash only if your hardware is synchronous, e.g., the AESNI instruction is a good example where a synchronous interface is appropriate. The reason crypto_ahash is so different is because it should be used where you need an asynchronous interface, where state has to be stored indefinitely.
-- To unsubscribe from this list: send the line "unsubscribe linux-crypto" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html