Re:Sshole
by K0nserv on Thursday November 05, 2026 @08:54AM
(#50379085)
For the other part of the issue (the truncation) in SHA512 in Rust you could've had:
Now the truncation is a terrible idea in the first place, but at least with this it would have been entirely obvious to the caller that it was there.
[ Parent
| on HN ]
In C you could do just the same: https://uecker.codeberg.page/2026-10-24.html
Whether you should is a different question.
In any case, you can not change the API of an existing function. But returning NULL for error has required by POSIX would have been just fine.