Added "hmac" to interface Hash. (#12)

pull/16/merge
shiyuesong 8 years ago committed by emn178
parent 68ffecdc6e
commit bf155ab82f

8
index.d.ts vendored

@ -53,6 +53,14 @@ interface Hash {
* @param message The message you want to hash.
*/
update(message: Message): Hasher;
/**
* Computes a Hash-based message authentication code (HMAC) using a secret key
*
* @param secretKey The Secret Key
* @param message The message you want to hash.
*/
hmac(secretKey: string, message: Message): string;
}
export var sha256: Hash;

Loading…
Cancel
Save