js-multiformats icon indicating copy to clipboard operation
js-multiformats copied to clipboard

add length requirements to hash functions

Open mikeal opened this issue 4 years ago • 0 comments

For security purposes we should allow hash implementations to come with hash size requirements, either a single integer or a range tuple. This would be used in the validate function and throw if a hash was not of a secure length.

mikeal avatar May 06 '20 20:05 mikeal