crypto: add null check to outputLength logic
The Hash
constructor's outputLength
logic checks if the options
input is an object, but doesn't check for null
objects. This commit adds that check.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines