]> git.ipfire.org Git - thirdparty/tor.git/commit
crypto: Fix hs_ntor MAC zero validation
authorDavid Goulet <dgoulet@torproject.org>
Wed, 18 Mar 2026 14:01:38 +0000 (10:01 -0400)
committerDavid Goulet <dgoulet@torproject.org>
Mon, 23 Mar 2026 13:41:26 +0000 (09:41 -0400)
commit3ea1af837dd60922a91a3e3b4e53b1d1cd596a72
tree1dc4d3642e95d757a967aa044b7bb9b4596a266e
parentbe0236b59d5fe2ce042729bd9002cdb84ea72c00
crypto: Fix hs_ntor MAC zero validation

A likely copy-pasta made its way through review which made the `rend_cell_auth`
never checked for all-zero.

This is not that problematic has the chances for SHA3 to generate a zeroed
buffer is close to impossible but defense in depth always.

Related to #41228

Signed-off-by: David Goulet <dgoulet@torproject.org>
src/core/crypto/hs_ntor.c