crypto: testmgr - extend acomp tests for NULL destination buffer
authorLucas Segarra Fernandez <lucas.segarra.fernandez@intel.com>
Fri, 12 Aug 2022 14:16:02 +0000 (16:16 +0200)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 19 Aug 2022 10:39:37 +0000 (18:39 +0800)
commit5a4c2936669736f2e915fe6135a668e9e079de34
treed8cb19519abca08bc592b7c248b25b884892d78c
parentbc9d6dac098bd4f6671970e0ba6c247e3a8c4029
crypto: testmgr - extend acomp tests for NULL destination buffer

Acomp API supports NULL destination buffer for compression
and decompression requests. In such cases allocation is
performed by API.

Add test cases for crypto_acomp_compress() and crypto_acomp_decompress()
with dst buffer allocated by API.

Tests will only run if CONFIG_CRYPTO_MANAGER_EXTRA_TESTS=y.

Signed-off-by: Lucas Segarra Fernandez <lucas.segarra.fernandez@intel.com>
Reviewed-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
crypto/testmgr.c