[PATCH -next] crypto: mxs-dcp: make symbols 'sha1_null_hash' and 'sha256_null_hash' static

2018-10-10 Thread Wei Yongjun
Fixes the following sparse warnings: drivers/crypto/mxs-dcp.c:39:15: warning: symbol 'sha1_null_hash' was not declared. Should it be static? drivers/crypto/mxs-dcp.c:43:15: warning: symbol 'sha256_null_hash' was not declared. Should it be static? Fixes: c709eebaf5c5 ("crypto: mxs-dcp - Fix SHA

Re: [PATCH] crypto: ccree - avoid implicit enum conversion

2018-10-10 Thread Nick Desaulniers
On Wed, Oct 10, 2018 at 2:44 PM Nathan Chancellor wrote: > > Clang warns when one enumerated type is implicitly converted to another > and this happens in several locations in this driver, ultimately related > to the set_cipher_{mode,config0} functions. set_cipher_mode expects a mode > of type drv

[PATCH] crypto: ccree - avoid implicit enum conversion

2018-10-10 Thread Nathan Chancellor
Clang warns when one enumerated type is implicitly converted to another and this happens in several locations in this driver, ultimately related to the set_cipher_{mode,config0} functions. set_cipher_mode expects a mode of type drv_cipher_mode and set_cipher_config0 expects a mode of type drv_crypt

Re: [PATCH] crypto: inside-secure: safexcel - fix memory allocation

2018-10-10 Thread Antoine Tenart
Hi Gustavo, On Mon, Oct 08, 2018 at 09:17:12PM +0200, Gustavo A. R. Silva wrote: > The original intention is to allocate space for EIP197_DEFAULT_RING_SIZE > *pointers* to struct, so sizeof(priv->ring[i].rdr_req) should be > sizeof(*priv->ring[i].rdr_req). > > Addresses-Coverity-ID: 1473962 ("Siz

[PATCH v2 1/2] crypto: streebog - add Streebog hash function

2018-10-10 Thread Vitaly Chikunov
Add GOST/IETF Streebog hash function (GOST R 34.11-2012, RFC 6986) generic hash transformation. Signed-off-by: Vitaly Chikunov --- crypto/Kconfig| 12 + crypto/Makefile |1 + crypto/streebog_generic.c | 1142 + include/crypt

[PATCH v2 2/2] crypto: streebog - add Streebog test vectors

2018-10-10 Thread Vitaly Chikunov
Add testmgr and tcrypt tests and vectors for Streebog hash function from RFC 6986 and GOST R 34.11-2012. Signed-off-by: Vitaly Chikunov --- crypto/tcrypt.c | 27 + crypto/testmgr.c | 12 ++ crypto/testmgr.h | 71 +++

[PATCH v2 0/2] crypto: streebog - add Streebog hash function

2018-10-10 Thread Vitaly Chikunov
Add GOST/IETF Streebog hash function (GOST R 34.11-2012, RFC 6986) generic hash transformation with appropriate testmgr and tcrypt tests and vectors. Streebog Hash Function (GOST R 34.11-2012, RFC 6986) is one of the Russian cryptographic standard algorithms (called GOST algorithms). References:

[PATCH] crypto: caam - add SPDX license identifier to all files

2018-10-10 Thread Horia Geantă
Previously, a tree-wide change added SPDX license identifiers to files lacking licensing information: b24413180f56 ("License cleanup: add SPDX GPL-2.0 license identifier to files with no license") To be consistent update the rest of the files: -files with license specified by means of MODULE_LICE

BUG: unable to handle kernel NULL pointer dereference in sha256_mb_mgr_get_comp_job_avx2

2018-10-10 Thread syzbot
Hello, syzbot found the following crash on: HEAD commit:64c5e530ac2c Merge tag 'arc-4.19-rc8' of git://git.kernel... git tree: upstream console output: https://syzkaller.appspot.com/x/log.txt?x=1294e2d640 kernel config: https://syzkaller.appspot.com/x/.config?x=88e9a8a39dc0be2d da