- AMD support.
- support for web worker. #13

Changed
- throw error if input type is incorrect when cSHAKE and KMAC.
- freeze hash after finalize.
This commit is contained in:
Yi-Cyuan Chen
2017-12-01 21:04:32 +08:00
parent c43f9d1d18
commit fb7e6403d9
17 changed files with 2296 additions and 292 deletions
+12
View File
@@ -0,0 +1,12 @@
var imported = false;
onmessage = function(e) {
if (imported) {
postMessage(sha3_512(e.data));
if (typeof exports !== 'undefined') {
imported = false;
}
} else {
imported = true;
importScripts(e.data);
}
}