3 ms·
Loading everything into memory at once shouldn't be necessary to produce a hash of the entire input. All of the hash functions currently supported allow for inc
by doomrobo 12y ago
Loading everything into memory at once shouldn't be necessary to produce a hash of the entire input. All of the hash functions currently supported allow for incremental hashing. That means you can hash in blocks instead of all at once.
- unsoundInput 12y agoThe input still needs to be cached for eventual output in case the hash matches I assume.
- throwaway_99837 12y agoOr, you know, do two passes.
- doomrobo 12y agoIn that case, you could still cache if you want but at least you now have the option to manage your memory instead of always crashing with large input
- stouset 12y agoMore importantly, so nothing is output if the hash doesn't match.