android_kernel_google_msm/drivers/crypto/msm
Mona Hossain 06388d508f crypto: Add wait states for hash/hmac operations
Currently, hash (SHA1/256/hmac) operation occasionally results
in an incorrect hash value. This is due to the premature reading
of the AUTH_IV register done before the last SHA block is processed.
There needs to be enough delay (wait states) before the AUTH_IV
register is read to extract the hash value.

The current implementation has 2 wait states. Adding 2 more wait states
for hash operations, resolves the issue.

The wait states are calculated based on the inputs from the hardware
team with regards to the time taken to process the last block of 16
bytes of the data packet.

Signed-off-by: Mona Hossain <mhossain@codeaurora.org>

Change-Id: I82936441429560e41f25a98994d49a0113eb8de2
Signed-off-by: Neha Pandey <nehap@codeaurora.org>
2013-03-07 15:20:53 -08:00
..
Makefile crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00
ota_crypto.c
qce.c crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00
qce.h crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00
qce40.c crypto: Add wait states for hash/hmac operations 2013-03-07 15:20:53 -08:00
qce40.h
qce50.c crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00
qce50.h crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00
qce_ota.h
qcedev.c crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00
qcrypto.c crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00
qcryptohw_30.h
qcryptohw_40.h
qcryptohw_50.h crypto: Add support for crypto engine 5.0 2013-02-27 18:18:16 -08:00