We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98bb65f commit 2dc9920Copy full SHA for 2dc9920
1 file changed
src/node_crypto.cc
@@ -3684,8 +3684,8 @@ void Hmac::HmacInit(const FunctionCallbackInfo<Value>& args) {
3684
bool Hmac::HmacUpdate(const char* data, int len) {
3685
if (!initialised_)
3686
return false;
3687
- HMAC_Update(&ctx_, reinterpret_cast<const unsigned char*>(data), len);
3688
- return true;
+ int r = HMAC_Update(&ctx_, reinterpret_cast<const unsigned char*>(data), len);
+ return r == 1;
3689
}
3690
3691
0 commit comments