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

This commit is contained in:
John Purcell committed 2014-03-19 16:53:31 -04:00
1 parent 406351308c
commit 941d790d6f
2 files changed
+10 -2

No files matched your search

+2 -2
View File
@@ -1017,8 +1017,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;