[PATCH] test/crypto: fix and improve ZUC cipher and auth tests

Zhang, Fan fanzhang.oss at gmail.com
Fri Jan 6 17:24:13 CET 2023


On 1/6/2023 4:15 PM, Ciara Power wrote:
> The incorrect value was used for the reference plaintext offset
> in ZUC cipher function. This is now fixed to convert to byte length,
> rather than bits.
>
> Also, to cleanup the ZUC test code, some small improvements are made.
> The authentication function takes the auth op enum as a parameter
> instead of a new variable, this can then be used directly.
> The cipher SGL function does not need to buffers allocated for
> ciphertext and plaintext, one can be used for both.
>
> Fixes: be8e5d957366 ("test/crypto: add further ZUC testcases")
>
> Signed-off-by: Ciara Power <ciara.power at intel.com>
Acked-by: Fan Zhang <fanzhang.oss at gmail.com>


More information about the dev mailing list