Update crypto.Hmac.update and crypto.Hmac.digest methods to the correct signature

This commit is contained in:
John Purcell
2014-03-19 16:53:31 -04:00
parent 406351308c
commit 941d790d6f
2 changed files with 10 additions and 2 deletions
+8
View File
@@ -6,6 +6,7 @@ import events = require("events");
import zlib = require("zlib");
import url = require('url');
import util = require("util");
import crypto = require("crypto");
assert(1 + 1 - 2 === 0, "The universe isn't how it should.");
@@ -80,3 +81,10 @@ function stream_readable_pipe_test() {
var w = fs.createWriteStream('file.txt.gz');
r.pipe(z).pipe(w);
}
////////////////////////////////////////////////////
/// Crypto tests : http://nodejs.org/api/crypto.html
////////////////////////////////////////////////////
var hmacResult: string = crypto.createHmac('md5', 'hello').update('world').digest('hex');