[EXTERNAL] [PATCH 2/2] crypto/qat: fix modexp and modinv result length and comparison
Akhil Goyal
gakhil at marvell.com
Tue Mar 24 10:29:21 CET 2026
> QAT HW rounds the output buffer size up to the next supported size,
> but result.length was set to alg_bytesize instead of n.length, causing
> result comparisons to read past the end of the expected value.
>
> Additionally, when a modulus has a leading zero padding byte, QAT HW
> strips it from the result but we never strip it from the expected result,
> so the compare fails. Fix verify_modexp() and verify_modinv() to skip
> leading zero bytes in the result before comparison.
>
> Fixes: 064ef1b098d1 ("test/crypto: remove PMD-specific asym test suites")
>
> Signed-off-by: Emma Finn <emma.finn at intel.com>
Applied to dpdk-next-crypto
Thanks.
More information about the dev
mailing list