Tim Ruehsen <[email protected]> writes:

> But what's wrong with providing a larger buffer than needed ?

I don't think about it as the size of the provided buffer, but as the
requested size of the digest (intended for the usecase of truncated
digests). And it's not defined how to produce a 20-byte md5 digest. If

  md5_digest(&md5, 20, digest);

were allowed, what should it do? Write 16 bytes, and leave the remaining
4 bytes untouched?

> Some admins have their jobs due to 'stop-by-assertion' software - at least 
> that is good thing about assertions ;)

I suspect that 'continue-with-silent-data-corruption' software would
give them even more work...

Regards,
/Niels

-- 
Niels Möller. PGP-encrypted email is preferred. Keyid C0B98E26.
Internet email is subject to wholesale government surveillance.
_______________________________________________
nettle-bugs mailing list
[email protected]
http://lists.lysator.liu.se/mailman/listinfo/nettle-bugs

Reply via email to