]> git.baikalelectronics.ru Git - kernel.git/commit
crypto: ccp - Change data length declarations to u64
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 6 Jan 2014 19:34:17 +0000 (13:34 -0600)
committerHerbert Xu <herbert@gondor.apana.org.au>
Wed, 15 Jan 2014 03:33:39 +0000 (11:33 +0800)
commit7539b09127d9028947376c801da16b348f8deeb4
tree95c4c83dc6175c6aa6f286676fbbd6c77419d5b8
parentd74a88eb1a4a18071d697971088fd828d77a37bb
crypto: ccp - Change data length declarations to u64

When performing a hash operation if the amount of data buffered and a
request at or near the maximum data length is received then the length
calcuation could wrap causing an error in executing the hash operation.
Fix this by using a u64 type for the input and output data lengths in
all CCP operations.

Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
drivers/crypto/ccp/ccp-crypto-aes-cmac.c
drivers/crypto/ccp/ccp-crypto-sha.c
drivers/crypto/ccp/ccp-crypto.h
drivers/crypto/ccp/ccp-ops.c
include/linux/ccp.h