summaryrefslogtreecommitdiff
path: root/drivers/crypto/qat/qat_dh895xcc
diff options
context:
space:
mode:
authorLeonidas Da Silva Barbosa <leosilva@linux.vnet.ibm.com>2015-04-23 23:41:43 +0300
committerHerbert Xu <herbert@gondor.apana.org.au>2015-04-26 09:33:19 +0300
commit10d87b730e1d9f1442cae6487bb3aef8632bed23 (patch)
tree4bffed8c0ee49a629ae7805334a2e56a52fec4c8 /drivers/crypto/qat/qat_dh895xcc
parentc3365ce130e50176533debe1cabebcdb8e61156c (diff)
downloadlinux-10d87b730e1d9f1442cae6487bb3aef8632bed23.tar.xz
crypto: nx - Fixing SHA update bug
Bug happens when a data size less than SHA block size is passed. Since first attempt will be saved in buffer, second round attempt get into two step to calculate op.inlen and op.outlen. The issue resides in this step. A wrong value of op.inlen and outlen was being calculated. This patch fix this eliminate the nx_sha_build_sg_list, that is useless in SHA's algorithm context. Instead we call nx_build_sg_list directly and pass a previous calculated max_sg_len to it. Signed-off-by: Leonidas S. Barbosa <leosilva@linux.vnet.ibm.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_dh895xcc')
0 files changed, 0 insertions, 0 deletions