summaryrefslogtreecommitdiff
path: root/lib/crypto.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/crypto.js')
-rw-r--r--lib/crypto.js12
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/crypto.js b/lib/crypto.js
index 500e14d2f8..01d4b7125b 100644
--- a/lib/crypto.js
+++ b/lib/crypto.js
@@ -160,8 +160,8 @@ function Hash(algorithm, options) {
util.inherits(Hash, stream.Transform);
-Hash.prototype._transform = function(chunk, callback) {
- this._binding.update(chunk);
+Hash.prototype._transform = function(chunk, encoding, callback) {
+ this._binding.update(chunk, encoding);
callback();
};
@@ -226,8 +226,8 @@ function Cipher(cipher, password, options) {
util.inherits(Cipher, stream.Transform);
-Cipher.prototype._transform = function(chunk, callback) {
- this.push(this._binding.update(chunk));
+Cipher.prototype._transform = function(chunk, encoding, callback) {
+ this.push(this._binding.update(chunk, encoding));
callback();
};
@@ -351,8 +351,8 @@ function Sign(algorithm, options) {
util.inherits(Sign, stream.Writable);
-Sign.prototype._write = function(chunk, callback) {
- this._binding.update(chunk);
+Sign.prototype._write = function(chunk, encoding, callback) {
+ this._binding.update(chunk, encoding);
callback();
};