crypto: Set a unique handle when opening qce device
- Define a new handle data structure "qcedev_handle"
This structures holds internal context data
"qcedev_sha_ctxt" and pointer to "qcedev_control"
- Allocate memory for the hanlde, each time a client
opens the device. Thereby, ensuring a unique handle
for each client.
- Use the new handle for each operation (instead of
qcedev_control pointer)
- Remove the internal sha context data structure
"qcedev_sha_ctx" from the "qcedev_sha_op_req".
This is now correctly tied to each handle.
Signed-off-by: Mona Hossain <mhossain@codeaurora.org>
2 files changed