]> git.ipfire.org Git - thirdparty/bind9.git/commit
Add a case-insensitive option directly to siphash 2-4 implementation
authorOndřej Surý <ondrej@isc.org>
Mon, 27 Jun 2022 08:13:19 +0000 (10:13 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 4 Oct 2022 08:32:40 +0000 (10:32 +0200)
commitc14a4ac763b24d239bebe849d294e47f8591c7be
treef904d25d76f795724a2070191d0119fb3f096afb
parentde10d697ab6fd5c8c3a017cee6359182a1d56348
Add a case-insensitive option directly to siphash 2-4 implementation

Formerly, the isc_hash32() would have to change the key in a local copy
to make it case insensitive.  Change the isc_siphash24() and
isc_halfsiphash24() functions to lowercase the input directly when
reading it from the memory and converting the uint8_t * array to
64-bit (respectively 32-bit numbers).
lib/dns/resolver.c
lib/isc/hash.c
lib/isc/include/isc/ascii.h
lib/isc/include/isc/siphash.h
lib/isc/siphash.c
lib/ns/client.c
tests/bench/siphash.c
tests/isc/ascii_test.c
tests/isc/siphash_test.c