legobeat and GitHub
d6325442bd
refactor: simplify formatMessage internal logic ( #34 )
...
* fix: don't modify global Array and ArrayBuffer prototypes
* wip: simplify formatMessage
* wip: simplify formatMessage internal logic
* wip: simplify formatMessage internal logic
* wip: simplify formatMessage internal logic
* refactor: simplify formatMessage internal logic
* formatMessage: remove double-negation: now returns istring instead of notString
* refactor: remove double-negation of isString
* refactor: remove double-negation of isString
* add comment on formatMessage return type
2023-09-16 21:23:54 +08:00
Yi-Cyuan Chen
f293b5d508
## v0.9.1 / 2023-08-31
...
### Fixed
- cSHAKE empty Array bug. #24
v0.9.1
2023-08-31 09:23:33 +08:00
Yi-Cyuan Chen
dbb0ea401f
## v0.9.0 / 2023-08-30
...
### Fixed
- cSHAKE bug. #24
- dependencies and security issues.
v0.9.0
2023-08-30 23:39:16 +08:00
5aecbd6968
Bump minimist, mocha and nyc ( #28 )
...
Removes [minimist](https://github.com/minimistjs/minimist ). It's no longer used after updating ancestor dependencies [minimist](https://github.com/minimistjs/minimist ), [mocha](https://github.com/mochajs/mocha ) and [nyc](https://github.com/istanbuljs/nyc ). These dependencies need to be updated together.
Removes `minimist`
Updates `mocha` from 2.3.4 to 10.2.0
- [Release notes](https://github.com/mochajs/mocha/releases )
- [Changelog](https://github.com/mochajs/mocha/blob/master/CHANGELOG.md )
- [Commits](https://github.com/mochajs/mocha/compare/2.3.4...v10.2.0 )
Updates `nyc` from 11.3.0 to 15.1.0
- [Release notes](https://github.com/istanbuljs/nyc/releases )
- [Changelog](https://github.com/istanbuljs/nyc/blob/master/CHANGELOG.md )
- [Commits](https://github.com/istanbuljs/nyc/compare/v11.3.0...v15.1.0 )
---
updated-dependencies:
- dependency-name: minimist
dependency-type: indirect
- dependency-name: mocha
dependency-type: direct:development
- dependency-name: nyc
dependency-type: direct:development
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-08-27 10:40:15 +08:00
Yi-Cyuan Chen
b39d0910cb
- Added TypeScript definitions.
...
- Changed throw error if update after finalize
v0.8.0
2018-08-05 15:33:12 +08:00
Micah Zoltu and emn178
1c00d97268
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.
2018-08-02 19:45:40 +08:00
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.
v0.7.0
2017-12-01 21:04:32 +08:00
Chen, Yi-Cyuan
c43f9d1d18
update package
v0.6.1
2017-07-03 09:01:22 +08:00
emn178 and GitHub
94a2758bf7
Merge pull request #12 from isaactorresmichel/isaactorresmichel-fixfortypo
...
Typo on variable kmac_256 type definition.
2017-07-02 07:19:42 +08:00
Isaac Torres Michel and GitHub
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.
2017-06-29 08:48:28 -05:00
Chen, Yi-Cyuan
e9084afbdf
Added
...
- cSHAKE method.
- KMAC method.
- alias methods without underscore like shake128, keccak512.
Changed
- throw error if input type is incorrect.
v0.6.0
2017-06-15 11:07:11 +08:00
Chen, Yi-Cyuan
5d6193d7f2
Fixed ArrayBuffer detection in old browsers.
v0.5.7
2016-12-30 10:17:55 +08:00
Chen, Yi-Cyuan
8ae70989ae
Fixed ArrayBuffer dosen't work in Webpack.
2016-12-29 09:31:53 +08:00
emn178 and GitHub
035642212a
Merge pull request #10 from happylynx/arraybuffer-fix
...
webpack & ArrayBuffer argument fix
2016-12-29 08:48:13 +08:00
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.
2016-12-27 20:18:36 +01:00
happylynx
ec2a9948f9
Test of non-empty ArrayBuffer added
2016-12-27 20:02:45 +01:00
Yi-Cyuan
f34e33dc99
update README
2016-09-26 10:55:14 +08:00
Yi-Cyuan
97e70fed97
Added
...
- TypeScript support.
- ArrayBuffer method.
Deprecated
- Buffer method.
v0.5.5
2016-09-26 10:46:34 +08:00
Chen Yi-Cyuan
bb08d1fc64
Added CommonJS detection.
v0.5.4
2016-09-12 20:07:58 +08:00
Chen, Yi-Cyuan
f0ff77ca47
Added some files to npm package.
v0.5.3
2016-09-08 10:47:31 +08:00
Yi-Cyuan
06a3fa8f52
* Fixed shake output incorrect in the special length.
v0.5.2
2016-06-06 11:23:18 +08:00
Yi-Cyuan
f22d720caa
Update package.json and bower.json.
v0.5.1
2015-10-27 14:34:23 +08:00
emn178
63f2823f49
Merge pull request #6 from adon-at-work/patch-1
...
Minor fix: declaring i in Keccak
2015-10-01 09:55:05 +08:00
adon
fbedaa1f4c
declaring i in Keccak
2015-09-28 16:13:39 -07:00
Yi-Cyuan
09db28deed
Support update interface.
v0.5.0
2015-09-23 17:13:07 +08:00
Yi-Cyuan
ca56f2ac21
* Support to output Integer Array.
...
* Fixed shake output incorrect when it's greater than 1088.
v0.4.1
2015-09-18 16:29:07 +08:00
Yi-Cyuan
99d724b22a
update README
2015-09-17 15:17:52 +08:00
Yi-Cyuan
63a860bdf9
fixed travis-ci config
2015-09-17 15:09:07 +08:00
Yi-Cyuan
7423f9ef37
add shake algorithm
2015-09-17 14:57:12 +08:00
Yi-Cyuan
61300d2d34
array buffer output
2015-09-17 11:39:36 +08:00
Chen Yi-Cyuan
0d1753fd8d
Fixed bugs
v0.3.1
2015-05-22 18:14:34 +08:00
Chen Yi-Cyuan
7851f7ad68
Support byte array and ArrayBuffer input.
v0.3.0
2015-05-21 19:28:19 +08:00
Chen Yi-Cyuan
db3ab779a8
update README
2015-04-05 09:29:18 +08:00
Chen Yi-Cyuan
372541684a
update README
v0.2.0
2015-04-04 22:11:23 +08:00
Chen Yi-Cyuan
1fa1812d86
* Implement NIST's May 2014 SHA-3 version.
...
* Rename original methods to keccak.
2015-04-04 22:04:00 +08:00
Chen Yi-Cyuan
e686ac6177
Improve performance.
v0.1.2
2015-02-27 16:45:54 +08:00
Chen Yi-Cyuan
87364f594b
Improve performance.
2015-02-26 10:35:13 +08:00
Chen Yi-Cyuan
b249e417a7
Initial release
v0.1.0
2015-02-23 18:23:14 +08:00