cardano-crypto.js
Advanced tools
Comparing version 3.1.3 to 3.1.4
12
index.js
@@ -281,5 +281,9 @@ var Module = require('./lib.js') | ||
var initKeyLen = initKey.length | ||
var initKeyArrPtr = Module._malloc(ctxLen) | ||
var initKeyArrPtr = Module._malloc(initKeyLen) | ||
var initKeyArr = new Uint8Array(Module.HEAPU8.buffer, initKeyArrPtr, initKeyLen) | ||
var outputLen = 64 | ||
var outputArrPtr = Module._malloc(outputLen) | ||
var outputArr = new Uint8Array(Module.HEAPU8.buffer, outputArrPtr, outputLen) | ||
initKeyArr.set(initKey) | ||
@@ -291,3 +295,3 @@ | ||
var inputLen = inputs[i].length | ||
var inputArrPtr = Module._malloc(inputLen) | ||
inputArrPtr = Module._malloc(inputLen) | ||
var inputArr = new Uint8Array(Module.HEAPU8.buffer, inputArrPtr, inputLen) | ||
@@ -302,6 +306,2 @@ | ||
var outputLen = 64 | ||
var outputArrPtr = Module._malloc(outputLen) | ||
var outputArr = new Uint8Array(Module.HEAPU8.buffer, outputArrPtr, outputLen) | ||
Module._emscripten_hmac_sha512_final(ctxArrPtr, outputArrPtr) | ||
@@ -308,0 +308,0 @@ |
{ | ||
"name": "cardano-crypto.js", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "input-output-hk/cardano-crypto compiled to pure javascript using Emscripten", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package