HomeFreeBSD

siphash: allow zero values for final & len in SipBuf()

Description

siphash: allow zero values for final & len in SipBuf()

Currently the assert checks for XOR of final and len.
This assert fails when running the unit tests in siphash_test.c.
We need to allow the case where both values are zero.

Signed-off-by: Mark O'Donovan <shiftee@posteo.net>
Reviewed by: imp, cperciva
Pull Request: https://github.com/freebsd/freebsd-src/pull/1324

Details

Provenance
Mark O'Donovan <shiftee@posteo.net>Authored on Jul 11 2024, 5:50 PM
impCommitted on Jul 29 2024, 8:44 PM
Parents
rG0244e0a177a6: openssl: Add <sys/random.h> include for getrandom()
Branches
Unknown
Tags
Unknown