diff --git a/src/node_crypto.cc b/src/node_crypto.cc index 774550c9956..d5915101638 100644 --- a/src/node_crypto.cc +++ b/src/node_crypto.cc @@ -3309,7 +3309,7 @@ class Verify : public ObjectWrap { unsigned char* hbuf = new unsigned char[hlen]; ssize_t hwritten = StringBytes::Write( - reinterpret_cast(hbuf), hlen, args[1], BINARY); + reinterpret_cast(hbuf), hlen, args[1], encoding); assert(hwritten == hlen); int r;