crypto: drop obsolete back compat logic for old nettle
authorDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Oct 2024 11:40:49 +0000 (12:40 +0100)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Oct 2024 12:13:53 +0000 (13:13 +0100)
commit95cc223afbde013c2dd0d6399211227861dbd9b2
tree4da65b0a50bc1ca5d632ae7d14a432e4ff0083f0
parent24a6271ebb2dd253952e7dcfb5420a37ffde86ba
crypto: drop obsolete back compat logic for old nettle

The nettle 2.x series declared all the hash functions with 'int' for
the data size. Since we dropped support for anything older than 3.4
we can assume nettle is using 'size_t' and thus avoid the back compat
looping logic.

Reviewed-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
crypto/hash-nettle.c