Merge pull request #1880 from jpmoodlerooms/node_crypto

Update crypto.Hmac.update and crypto.Hmac.digest methods to the correct signature
This commit is contained in:
Masahiro Wakame
2014-04-01 10:27:08 +09:00
2 changed files with 10 additions and 2 deletions
+2 -2
View File
@@ -1021,8 +1021,8 @@ declare module "crypto" {
digest(encoding?: string): string;
}
interface Hmac {
update(data: any): void;
digest(encoding?: string): void;
update(data: any, input_encoding?: string): Hmac;
digest(encoding?: string): string;
}
export function createCipher(algorithm: string, password: any): Cipher;
export function createCipheriv(algorithm: string, key: any, iv: any): Cipher;