Results 1 to 1 of 1
Hi, I am trying to write a driver for HW accelerator for SHA1 to work with Linux 3.0 kernel. I have set the "shash_alg" structure properly and register the shash ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 01-27-2012 #1
- Join Date
- Jan 2012
SHA1 driver for IP Sec
I am trying to write a driver for HW accelerator for SHA1 to work with Linux 3.0 kernel.
I have set the "shash_alg" structure properly and register the shash alogirithm. My callback functions are being called as expected. However I am noticing the following sequence of call back function calls
- my init function gets called
- my update function gets called (with data and size)
- my finup function gets called (u8 *in_data, int in_data_size, u8 * out_data)
Typically I would expect messages to stop here, however I see second finup message with data size 20. Is this correct? What is it supposed to be used for?
The total size of actual data is size of data in update + size of data in first finup, so what is this extra 20 bytes?
Also do I need to define export and import functions. I haven't.
Your help is highly appreciated. Thanks,