crypto: simplify Hmac::HmacUpdate
This makes HmacUpdate
slightly simpler and introduces a CHECK
instead of ignoring invalid input types. The JS layer shouldn't pass invalid inputs anyway.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines