fix siphash24 not having ready
This commit is contained in:
parent
b883b2a8df
commit
51e11143e5
@ -4,14 +4,9 @@ exports.crypto_shorthash_PRIMITIVE = 'siphash24'
|
|||||||
exports.crypto_shorthash_BYTES = siphash.BYTES
|
exports.crypto_shorthash_BYTES = siphash.BYTES
|
||||||
exports.crypto_shorthash_KEYBYTES = siphash.KEYBYTES
|
exports.crypto_shorthash_KEYBYTES = siphash.KEYBYTES
|
||||||
exports.crypto_shorthash_WASM_SUPPORTED = siphash.WASM_SUPPORTED
|
exports.crypto_shorthash_WASM_SUPPORTED = siphash.WASM_SUPPORTED
|
||||||
exports.crypto_shorthash_WASM_LOADED = siphash.WASM_LOADED
|
|
||||||
exports.crypto_shorthash_ready = siphash.ready
|
exports.crypto_shorthash_ready = siphash.ready
|
||||||
exports.crypto_shorthash = shorthash
|
exports.crypto_shorthash = shorthash
|
||||||
|
|
||||||
siphash.ready(function () {
|
|
||||||
exports.crypto_shorthash_WASM_LOADED = siphash.WASM_LOADED
|
|
||||||
})
|
|
||||||
|
|
||||||
function shorthash (out, data, key, noAssert) {
|
function shorthash (out, data, key, noAssert) {
|
||||||
siphash(data, key, out, noAssert)
|
siphash(data, key, out, noAssert)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user