mirror of
https://github.com/emn178/js-sha3.git
synced 2026-08-12 19:41:36 +08:00
Adds arrayBuffer and buffer definitions. (#16)
This is based entirely on the examples in the readme. If the examples in the readme are incorrect then this definition is also incorrect.
This commit is contained in:
Vendored
+14
@@ -42,6 +42,20 @@ interface Hash {
|
|||||||
*/
|
*/
|
||||||
(message: Message): string;
|
(message: Message): string;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hash and return ArrayBuffer.
|
||||||
|
*
|
||||||
|
* @param message The message you want to hash.
|
||||||
|
*/
|
||||||
|
arrayBuffer(message: Message): ArrayBuffer;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Hash and return ArrayBuffer.
|
||||||
|
*
|
||||||
|
* @param message The message you want to hash.
|
||||||
|
*/
|
||||||
|
buffer(message: Message): ArrayBuffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a hash object.
|
* Create a hash object.
|
||||||
*/
|
*/
|
||||||
|
|||||||
Reference in New Issue
Block a user