[LTP] 答复: 答复: [PATCH] add several hash algorithms for crypto/crypto_user02.c

wenyehai wenyehai@huawei.com
Tue Jan 11 03:19:05 CET 2022


Hi Eric:

Thank you very much for your kind reply, and also sorry for causing you confusion. 
Actually, I do want to get crypto_user02 to run in more cases.

The product which I tested just only enable sha3 algorithm, but when I run cryto_user02, it tells "no viable algorithm found", as follows:
./crypto_user02
tst_test.c:1365: TINFO: Timeout per run is 0h 05m 00s
crypto_user02.c:84: TCONF: No viable algorithm found

Summary:
passed   0
failed   0
broken   0
skipped  1
warnings 0


I want crypto_user02 to support more cases(not only sha3), but I am not sure which algorithms should list, 
so I compare with the latest linux kernel encryption module, add several hash algorithms which not list in crypto_user02.



Best Regards
Yehai Wen

-----邮件原件-----
发件人: Eric Biggers [mailto:ebiggers@kernel.org] 
发送时间: 2022年1月11日 1:44
收件人: wenyehai <wenyehai@huawei.com>
抄送: ltp@lists.linux.it
主题: Re: 答复: [LTP] [PATCH] add several hash algorithms for crypto/crypto_user02.c

On Mon, Jan 10, 2022 at 03:59:39AM +0000, wenyehai wrote:
> Hi Eric:
> 
> 
> 
> Thank you very much for your kind reply, and I am very sorry for not 
> describing the background clearly.
> 
> 
> 
> Actually, I wanted to test the sha3 algorithm in kernel 5.10, but 
> crypto_user02.c return "no viable algorithm found" as follows:
> 
> 
> 
> [cid:image001.png@01D80618.14306F90]
> 
> 
> 
> So I add sha3 to crypto_user02.c and run again, at the same time, 
> according to the latest linux kernel encryption module, add several 
> hash algorithms, as
> follows:
> 
> 
> 
> [cid:image002.png@01D80618.F702D790]

[For compatibility with the mailing list, please use plain text email without images -- thanks!]

I still don't understand exactly what you're trying to do.  If you're just trying to get crypto_user02 to run in more cases, then your patch makes sense.
If on the other hand you're actually trying to get the kernel to instantiate more algorithms so that their in-kernel self-tests are run, that is *not* the purpose of crypto_user02; a new test should be written for that purpose.  The test could try to instantiate all algorithms which have in-kernel self-tests.

- Eric


More information about the ltp mailing list