android_kernel_samsung_a7y1.../arch/x86/crypto
Eric Biggers 145bd21d9e crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest()
commit dec3d0b1071a0f3194e66a83d26ecf4aa8c5910e upstream.

The ->digest() method of crct10dif-pclmul reads the current CRC value
from the shash_desc context.  But this value is uninitialized, causing
crypto_shash_digest() to compute the wrong result.  Fix it.

Probably this wasn't noticed before because lib/crc-t10dif.c only uses
crypto_shash_update(), not crypto_shash_digest().  Likewise,
crypto_shash_digest() is not yet tested by the crypto self-tests because
those only test the ahash API which only uses shash init/update/final.

Fixes: 0b95a7f85718 ("crypto: crct10dif - Glue code to cast accelerated CRCT10DIF assembly as a crypto transform")
Cc: <stable@vger.kernel.org> # v3.11+
Cc: Tim Chen <tim.c.chen@linux.intel.com>
Signed-off-by: Eric Biggers <ebiggers@google.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-04-06 18:12:16 +02:00
..
sha-mb A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aes_ctrby8_avx-x86_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aes_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aes-i586-asm_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aes-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aesni-intel_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aesni-intel_avx-x86_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
aesni-intel_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
blowfish_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
blowfish-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
camellia_aesni_avx_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
camellia_aesni_avx2_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
camellia_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
camellia-aesni-avx-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
camellia-aesni-avx2-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
camellia-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cast5_avx_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cast5-avx-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cast6_avx_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
cast6-avx-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chacha20_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chacha20-avx2-x86_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
chacha20-ssse3-x86_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crc32-pclmul_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crc32-pclmul_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crc32c-intel_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crc32c-pcl-intel-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crct10dif-pcl-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
crct10dif-pclmul_glue.c crypto: x86/crct10dif-pcl - fix use via crypto_shash_digest() 2020-04-06 18:12:16 +02:00
des3_ede_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
des3_ede-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
fpu.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ghash-clmulni-intel_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
ghash-clmulni-intel_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glue_helper-asm-avx.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glue_helper-asm-avx2.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
glue_helper.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
Makefile A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
poly1305_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
poly1305-avx2-x86_64.S crypto: x86/poly1305 - fix overflow during partial reduction 2020-04-06 15:51:38 +02:00
poly1305-sse2-x86_64.S crypto: x86/poly1305 - fix overflow during partial reduction 2020-04-06 15:51:38 +02:00
salsa20_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
salsa20-i586-asm_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
salsa20-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serpent_avx_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serpent_avx2_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serpent_sse2_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serpent-avx-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serpent-avx2-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serpent-sse2-i586-asm_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
serpent-sse2-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha1_avx2_x86_64_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha1_ni_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha1_ssse3_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha1_ssse3_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha256_ni_asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha256_ssse3_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha256-avx-asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha256-avx2-asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha256-ssse3-asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha512_ssse3_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha512-avx-asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha512-avx2-asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
sha512-ssse3-asm.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
twofish_avx_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
twofish_glue_3way.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
twofish_glue.c A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
twofish-avx-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
twofish-i586-asm_32.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
twofish-x86_64-asm_64-3way.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30
twofish-x86_64-asm_64.S A750FXXU4CTBC 2020-03-27 21:51:54 +05:30