logoalt Hacker News

vsl12/09/20241 replyview on HN

No, these APIs are intentionally designed to be equivalent to hashing all data at once - i.e. to make it possible to hash in O(1) space.

There's nothing "disfunctional" about that.

"Incremental hash function" has a very different meaning and doesn't seem to have any relevance to what is discussed here: https://people.eecs.berkeley.edu/~daw/papers/inchash-cs06.pd...


Replies

blueflow12/09/2024

I guess the PHP documentation is wrong then. Look at this: https://www.php.net/manual/en/function.hash-init.php

show 2 replies