Commit Graph

33 Commits (8702f6502b6fddb13ff3a8f220cb1602b56489d5)
 

Author SHA1 Message Date
Micah Zoltu 8702f6502b
Adds arrayBuffer and buffer definitions.
This is based entirely on the examples in the readme.  If the examples in the readme are incorrect then this definition is also incorrect.
7 years ago
Yi-Cyuan Chen fb7e6403d9 Added
- AMD support.
- support for web worker. #13

Changed
- throw error if input type is incorrect when cSHAKE and KMAC.
- freeze hash after finalize.
8 years ago
Chen, Yi-Cyuan c43f9d1d18 update package 8 years ago
emn178 94a2758bf7 Merge pull request #12 from isaactorresmichel/isaactorresmichel-fixfortypo
Typo on variable kmac_256 type definition.
8 years ago
Isaac Torres Michel 540bbee16b Typo on variable kmac_256 type definition.
Typescript definition file has a typo on variable kmac_256 class type. Typ definition was not in PascalCase format. So when the file is used throws an "/js-sha3/index.d.ts (166,22): Cannot find name 'kmacHash'" error.
8 years ago
Chen, Yi-Cyuan e9084afbdf Added
- cSHAKE method.
- KMAC method.
- alias methods without underscore like shake128, keccak512.

Changed
- throw error if input type is incorrect.
8 years ago
Chen, Yi-Cyuan 5d6193d7f2 Fixed ArrayBuffer detection in old browsers. 9 years ago
Chen, Yi-Cyuan 8ae70989ae Fixed ArrayBuffer dosen't work in Webpack. 9 years ago
emn178 035642212a Merge pull request #10 from happylynx/arraybuffer-fix
webpack & ArrayBuffer argument fix
9 years ago
happylynx 9f8c2a3fb3 Fix of recognition of ArrayBuffer parameters
If js-sha3 is loaded using 'webpack' loader then the top-most
fuction is not called with global object (`global` in node,
`window` in browsers) and thus `root.ArrayBuffer` is undefined.

This patch introduces usage of `ArrayBuffer` without `root`
prefix similary to how e.g. `Uint8Array` is already used.
9 years ago
happylynx ec2a9948f9 Test of non-empty ArrayBuffer added 9 years ago
Yi-Cyuan f34e33dc99 update README 9 years ago
Yi-Cyuan 97e70fed97 Added
- TypeScript support.
- ArrayBuffer method.
Deprecated
- Buffer method.
9 years ago
Chen Yi-Cyuan bb08d1fc64 Added CommonJS detection. 9 years ago
Chen, Yi-Cyuan f0ff77ca47 Added some files to npm package. 9 years ago
Yi-Cyuan 06a3fa8f52 * Fixed shake output incorrect in the special length. 9 years ago
Yi-Cyuan f22d720caa Update package.json and bower.json. 10 years ago
emn178 63f2823f49 Merge pull request #6 from adon-at-work/patch-1
Minor fix: declaring i in Keccak
10 years ago
adon fbedaa1f4c declaring i in Keccak 10 years ago
Yi-Cyuan 09db28deed Support update interface. 10 years ago
Yi-Cyuan ca56f2ac21 * Support to output Integer Array.
* Fixed shake output incorrect when it's greater than 1088.
10 years ago
Yi-Cyuan 99d724b22a update README 10 years ago
Yi-Cyuan 63a860bdf9 fixed travis-ci config 10 years ago
Yi-Cyuan 7423f9ef37 add shake algorithm 10 years ago
Yi-Cyuan 61300d2d34 array buffer output 10 years ago
Chen Yi-Cyuan 0d1753fd8d Fixed bugs 10 years ago
Chen Yi-Cyuan 7851f7ad68 Support byte array and ArrayBuffer input. 10 years ago
Chen Yi-Cyuan db3ab779a8 update README 10 years ago
Chen Yi-Cyuan 372541684a update README 10 years ago
Chen Yi-Cyuan 1fa1812d86 * Implement NIST's May 2014 SHA-3 version.
* Rename original methods to keccak.
10 years ago
Chen Yi-Cyuan e686ac6177 Improve performance. 11 years ago
Chen Yi-Cyuan 87364f594b Improve performance. 11 years ago
Chen Yi-Cyuan b249e417a7 Initial release 11 years ago