]> git.baikalelectronics.ru Git - kernel.git/commit
arm64/crypto: fix data corruption bug in GHASH algorithm
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Mon, 16 Jun 2014 10:02:15 +0000 (11:02 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Wed, 18 Jun 2014 11:40:53 +0000 (12:40 +0100)
commit18610f7f48b8a60d4c9ec88ba4bb97bfa9d8c11a
tree8a9d694297be2e760b078adb24c0fda6dbdb36d1
parent6795ef9e1eb3afb60de0a6fd3d4ee2a8273679c2
arm64/crypto: fix data corruption bug in GHASH algorithm

This fixes a bug in the GHASH algorithm resulting in the calculated hash to be
incorrect if the input is presented in chunks whose size is not a multiple of
16 bytes.

Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Fixes: c1f2b493518b ("arm64/crypto: GHASH secure hash using ARMv8 Crypto Extensions")
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/crypto/ghash-ce-glue.c