On 30/06/2020 10:46, Herbert Xu wrote:
On Tue, Jun 30, 2020 at 10:20:06AM +0300, Tero Kristo wrote:

Only up-to block size? This would limit the buffer to 64-128 bytes.

The exported hash state is not supposed to be used to support
hardware that does not support partial hashing.

These states could potentially be placed on the stack so they
must not be large.

How about making the buffer size configurable during probe time via module param, and/or runtime via sysfs parameter? This would allow system designers to tune it based on expected usecases.

Texas Instruments Finland Oy, Porkkalankatu 22, 00180 Helsinki. 
Y-tunnus/Business ID: 0615521-4. Kotipaikka/Domicile: Helsinki

Reply via email to