tools/testing/crypto: Use vzalloc instead of vmalloc+memsetThis fixes the corresponding coccinelle warning.Signed-off-by: Siddh Raman Pant <code@siddh.me>Signed-off-by: Harald Freudenberger <fre
tools/testing/crypto: Use vzalloc instead of vmalloc+memsetThis fixes the corresponding coccinelle warning.Signed-off-by: Siddh Raman Pant <code@siddh.me>Signed-off-by: Harald Freudenberger <freude@linux.ibm.com>Link: https://lore.kernel.org/r/20220627075148.140705-1-code@siddh.me[agordeev@linux.ibm.com added Link]Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
show more ...
crypto: s390 - add crypto library interface for ChaCha20Implement a crypto library interface for the s390-native ChaCha20 cipheralgorithm. This allows us to stop to select CRYPTO_CHACHA20 and inst
crypto: s390 - add crypto library interface for ChaCha20Implement a crypto library interface for the s390-native ChaCha20 cipheralgorithm. This allows us to stop to select CRYPTO_CHACHA20 and insteadselect CRYPTO_ARCH_HAVE_LIB_CHACHA. This allows BIG_KEYS=y not to builda whole ChaCha20 crypto infrastructure as a built-in, but build a smallerCRYPTO_LIB_CHACHA instead.Make CRYPTO_CHACHA_S390 config entry to look like similar ones on otherarchitectures. Remove CRYPTO_ALGAPI select as anyway it is selected byCRYPTO_SKCIPHER.Add a new test module and a test script for ChaCha20 cipher and itsinterfaces. Here are test results on an idle z15 machine:Data | Generic crypto TFM | s390 crypto TFM | s390 libsize | enc dec | enc dec | enc dec-----+--------------------+------------------+----------------512b | 1545ns 1295ns | 604ns 446ns | 430ns 407ns4k | 9536ns 9463ns | 2329ns 2174ns | 2170ns 2154ns64k | 149.6us 149.3us | 34.4us 34.5us | 33.9us 33.1us6M | 23.61ms 23.11ms | 4223us 4160us | 3951us 4008us60M | 143.9ms 143.9ms | 33.5ms 33.2ms | 32.2ms 32.1msSigned-off-by: Vladis Dronov <vdronov@redhat.com>Reviewed-by: Harald Freudenberger <freude@linux.ibm.com>Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>