[PATCH 2/3] crypto: bcm - convert to use crypto_authenc_extractkeys()

2018-12-16 Thread Eric Biggers
From: Eric Biggers Convert the bcm crypto driver to use crypto_authenc_extractkeys() so that it picks up the fix for broken validation of rtattr::rta_len. This also fixes the DES weak key check to actually be done on the right key. (It was checking the authentication key, not the encryption key.

[PATCH 1/3] crypto: authenc - fix parsing key with misaligned rta_len

2018-12-16 Thread Eric Biggers
From: Eric Biggers Keys for "authenc" AEADs are formatted as an rtattr containing a 4-byte 'enckeylen', followed by an authentication key and an encryption key. crypto_authenc_extractkeys() parses the key to find the inner keys. However, it fails to consider the case where the rtattr's payload i

[PATCH 3/3] crypto: ccree - convert to use crypto_authenc_extractkeys()

2018-12-16 Thread Eric Biggers
From: Eric Biggers Convert the ccree crypto driver to use crypto_authenc_extractkeys() so that it picks up the fix for broken validation of rtattr::rta_len. Fixes: ff27e85a85bb ("crypto: ccree - add AEAD support") Cc: # v4.17+ Signed-off-by: Eric Biggers --- drivers/crypto/ccree/cc_aead.c | 4

[PATCH 0/3] crypto: authenc - fix key parsing

2018-12-16 Thread Eric Biggers
Fix incorrect validation of the key passed to "authenc" AEADs that allowed crashing the kernel via AF_ALG. The real fix is in patch 1, but two drivers had to be converted to use crypto_authenc_extractkeys() too. Please note: for the bcm and ccree driver changes I haven't re-run the self-tests, as

[PATCH] crypto: remove struct cipher_desc

2018-12-16 Thread Eric Biggers
From: Eric Biggers 'struct cipher_desc' is unused. Remove it. Signed-off-by: Eric Biggers --- include/linux/crypto.h | 8 1 file changed, 8 deletions(-) diff --git a/include/linux/crypto.h b/include/linux/crypto.h index c2f5baed522cc..21153515db515 100644 --- a/include/linux/crypto.

wohltätige Spende von 2.000.000 euro

2018-12-16 Thread Tayeb Souami
-- Lieber Freund, Ich bin Herr Tayeb Souami, New Jersey, Vereinigte Staaten von Amerika, der Mega-Gewinner von $ 315million In Mega Millions Jackpot, spende ich an 5 zufällige Personen, wenn Sie diese E-Mail erhalten, dann wurde Ihre E-Mail nach einem Spinball ausgewählt.Ich habe den größte

[PATCH] crypto: remove remnants of internal IV generators

2018-12-16 Thread Eric Biggers
From: Eric Biggers Remove dead code related to internal IV generators, which are no longer used since they've been replaced with the "seqiv" and "echainiv" templates. The removed code includes: - The "givcipher" (GIVCIPHER) algorithm type. No algorithms are registered with this type anymore,

[PATCH] crypto: cavium/nitrox - Fix build with !CONFIG_DEBUG_FS

2018-12-16 Thread Eric Biggers
From: Eric Biggers Fixes: cf718eaa8f9b ("crypto: cavium/nitrox - Enabled Mailbox support") Signed-off-by: Eric Biggers --- drivers/crypto/cavium/nitrox/nitrox_debugfs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/crypto/cavium/nitrox/nitrox_debugfs.h b/drivers