[EXTERNAL] [PATCH v3 1/3] lib/cryptodev: avoid implicit conversion to 64 bit number
Akhil Goyal
gakhil at marvell.com
Thu Feb 6 13:08:38 CET 2025
> MSVC issues the warning below:
>
> ../lib/cryptodev/rte_cryptodev.c(623): warning C4334: '<<':
> result of 32-bit shift implicitly converted to 64 bits
> (was 64-bit shift intended?)
>
> The code would be better off by using 64 bit numbers to begin with.
> That eliminates the need for a conversion to 64 bits later.
>
> This patch actually fixes a bug present in previous DPDK versions
> because the last of the hash enums RTE_CRYPTO_AUTH_SM3_HMAC in
> rte_crypto_auth_algorithm has value 32.
>
> Fixes: 6f8ef8b68edb ("cryptodev: add hash algorithms in asymmetric capability")
> Cc: stable at dpdk.org
>
> Signed-off-by: Andre Muezerie <andremue at linux.microsoft.com>
> Acked-by: Akhil Goyal <gakhil at marvell.com>
> Reviewed-by: Morten Brørup <mb at smartsharesystems.com>
V2 of this patch was already applied to dpdk-next-crypto.
Now the other patches of the series are also applied.
Thanks.
More information about the stable
mailing list